Bug 287411
| Summary: | [HDR] Scan the layer backing for HDR contents | ||
|---|---|---|---|
| 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 | ||
| Bug Depends on: | |||
| Bug Blocks: | 282299 | ||
Said Abou-Hallawa
This work is towards creating HDR layers only when needed. See bug 282298.
When the render sub-tree of a layer is scanned for painted contents, we can check for the HDR contents also.
PaintedContentRequest will have a new RequestState named `hasPaintedHDRContent`. PaintedContentsInfo will have a new RequestState named `m_hdrContent`.
PaintedContentsInfo::determinePaintsContent() will determine the paintedContent and the paintsHDRContent in one traversal by calling RenderLayerBacking::determinePaintsContent(). When this function returns, `hasPaintedHDRContent` will be copied to `m_hdrContent`.
In future patches, a new method RenderLayerBacking::updateDrawsHDRContent() will be added. It will force calling PaintedContentsInfo::determinePaintsContent() if it was not called before and it will update the ContentsFormat of its `m_graphicsLayer`.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/144534518>
Said Abou-Hallawa
Pull request: https://github.com/WebKit/WebKit/pull/40360
EWS
Committed 290274@main (0acfecd15ef3): <https://commits.webkit.org/290274@main>
Reviewed commits have been landed. Closing PR #40360 and removing active labels.