Bug 255677
| Summary: | [GPU Process] (REGRESSION 262607@main): Copy pixels of CGImage only if it is not a sub-image | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Said Abou-Hallawa <sabouhallawa> |
| Component: | Images | Assignee: | Said Abou-Hallawa <sabouhallawa> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | sabouhallawa, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=254794 | ||
Said Abou-Hallawa
If the calculation of sizeInBytes in ShareableBitmap::createFromImagePixels() does not match ShareableBitmapConfiguration::sizeInBytes(), we should not copy the pixels of this CGImage. Otherwise ShareableBitmapConfiguration will falsely describe the data in the SharedMemory. In this case we should fallback to ShareableBitmap::createFromImageDraw().
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Said Abou-Hallawa
rdar://108072383
Said Abou-Hallawa
Pull request: https://github.com/WebKit/WebKit/pull/12933
EWS
Committed 264021@main (58702859275c): <https://commits.webkit.org/264021@main>
Reviewed commits have been landed. Closing PR #12933 and removing active labels.