Bug 241443 - Combine leaf layer transforms into the content scale
Summary: Combine leaf layer transforms into the content scale
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Matt Woodrow
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-06-08 18:08 PDT by Matt Woodrow
Modified: 2022-06-08 18:44 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Woodrow 2022-06-08 18:08:39 PDT
When we have a scaling transform applied to a leaf layer (and we don't think the transform is likely to be animated), we can apply the scaling component of the transform into the contentsScale of the layer. This will give us better quality results for upscaled content, and less memory usage for downscaled content.

There's a potential for performance regressions here, so we want to try to limit it (for now!) to cases where we're confident it's going to be an improvement.

<rdar://89515405>
Comment 1 Matt Woodrow 2022-06-08 18:44:21 PDT
Pull request: https://github.com/WebKit/WebKit/pull/1401