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: | 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
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/145515241>
Said Abou-Hallawa
Pull request: https://github.com/WebKit/WebKit/pull/41246
EWS
Committed 291179@main (c392d3b6bf92): <https://commits.webkit.org/291179@main>
Reviewed commits have been landed. Closing PR #41246 and removing active labels.