| Summary: | Support reftests using DisplayP3 backing stores rather than sRGB to enable testing non-sRGB functionality | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Sam Weinig <sam> | ||||
| Component: | New Bugs | Assignee: | Sam Weinig <sam> | ||||
| Status: | NEW --- | ||||||
| Severity: | Normal | CC: | thorton, webkit-bug-importer | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | WebKit Nightly Build | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
|
Description
Sam Weinig
2021-05-02 17:49:38 PDT
Created attachment 427533 [details]
WIP (only supports non-composited WebKitLegacy macOS)
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. |