Bug 288419

Summary: [HDR] Scan the render layer tree for HDR content only if the document has at least one HDR image or canvas
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-24 15:36:03 PST
Scanning the renderer of a render layer and its descendants for HDR contents is costly. To optimize the PLT, the traversal for HDR content can be disabled until an HDR image is loaded or an HDR canvas context is created. A flag can be kept on the Page to tell whether the page hasPaintedHDRContent() or not. This flag can be used by Page::canDrawHDRContent() which is consulted for before starting the traversal for HDR content.
Attachments
Radar WebKit Bug Importer
Comment 1 2025-02-24 15:37:04 PST
Said Abou-Hallawa
Comment 2 2025-02-24 15:42:19 PST
EWS
Comment 3 2025-02-26 17:10:08 PST
Committed 291179@main (c392d3b6bf92): <https://commits.webkit.org/291179@main> Reviewed commits have been landed. Closing PR #41246 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.