Bug 241443

Summary: Combine leaf layer transforms into the content scale
Product: WebKit Reporter: Matt Woodrow <mattwoodrow>
Component: Layout and RenderingAssignee: Matt Woodrow <mattwoodrow>
Status: NEW ---    
Severity: Normal CC: bfulgham, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

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