Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
createImageBitmap using ImageData doesn't respect the premultiply flag.
https://bugs.webkit.org/show_bug.cgi?id=237082 <rdar://89382358> Reviewed by Brent Fulgham. This path used the flag to premultiply the incoming data, but didn't mark the resulting ImageBitmap as wanting premultiplied data. When uploading a WebGL texture we'd check for the flag, and unpremultiply again since it wasn't there. * LayoutTests/webgl/2.0.0/resources/webgl_test_files/js/tests/tex-image-and-sub-image-2d-with-image-bitmap-from-image-data.js: (init): (generateTest): * Source/WebCore/html/ImageBitmap.cpp: (WebCore::ImageBitmap::createPromise): Canonical link: https://commits.webkit.org/263137@main
- Loading branch information
1 parent
55036f7
commit aa1ea27
Showing
2 changed files
with
15 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters