NEW225285
Support reftests using DisplayP3 backing stores rather than sRGB to enable testing non-sRGB functionality
https://bugs.webkit.org/show_bug.cgi?id=225285
Summary Support reftests using DisplayP3 backing stores rather than sRGB to enable te...
Sam Weinig
Reported 2021-05-02 17:49:38 PDT
Support reftests using DisplayP3 backing stores rather than sRGB to enable testing non-sRGB functionality
Attachments
WIP (only supports non-composited WebKitLegacy macOS) (21.78 KB, patch)
2021-05-02 17:52 PDT, Sam Weinig
ews-feeder: commit-queue-
Sam Weinig
Comment 1 2021-05-02 17:52:18 PDT
Created attachment 427533 [details] WIP (only supports non-composited WebKitLegacy macOS)
Sam Weinig
Comment 2 2021-05-02 19:28:25 PDT
For modern WebKit and composited WebKitLegacy content the issue is that CGWindowListCreateImage() doesn't seem to be return a CGImageRef with the right color space even though the window has a DisplayP3 color space on it. I will check with the window server and CA folks to see if this is expected and/or there is any work around. If there isn't, we could make this new flag incompatible with compositing and use the FrameSnapshotting code when testing non-sRGB, but that seems less than ideal.
Radar WebKit Bug Importer
Comment 3 2021-05-09 17:50:15 PDT
Note You need to log in before you can comment on or make changes to this bug.