Bug 287411

Summary: [HDR] Scan the layer backing for HDR contents
Product: WebKit Reporter: Said Abou-Hallawa <sabouhallawa>
Component: ImagesAssignee: 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
Reported 2025-02-10 08:41:01 PST
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
Radar WebKit Bug Importer
Comment 1 2025-02-10 08:41:28 PST
Said Abou-Hallawa
Comment 2 2025-02-10 09:00:42 PST
EWS
Comment 3 2025-02-12 09:47:13 PST
Committed 290274@main (0acfecd15ef3): <https://commits.webkit.org/290274@main> Reviewed commits have been landed. Closing PR #40360 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.