Bug 256621

Summary: Mask back to front buffer copy when using remote rendering path
Product: WebKit Reporter: Ben Nham <nham>
Component: Layout and RenderingAssignee: Matt Woodrow <mattwoodrow>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Ben Nham 2023-05-10 16:52:37 PDT
When comparing QuartzCore's implementation of back to front buffer copies to our implementation of the copy in RemoteLayerBackingStore, there are two optimizations that we are missing. First, QuartzCore masks the back to front buffer copy by the dirty shape. Secondly, it avoids re-clearing a surface that was just allocated. Implement these optimizations in RemoteLayerBackingStore to see if they improve our memory bandwidth regression.
Comment 1 Radar WebKit Bug Importer 2023-05-10 16:52:56 PDT
<rdar://problem/109179068>
Comment 2 Ben Nham 2023-05-10 16:57:06 PDT
Pull request: https://github.com/WebKit/WebKit/pull/13729
Comment 3 Matt Woodrow 2023-05-11 13:59:28 PDT
Pull request: https://github.com/WebKit/WebKit/pull/13770
Comment 4 EWS 2023-05-11 18:11:55 PDT
Committed 263994@main (c26d9ad7d08d): <https://commits.webkit.org/263994@main>

Reviewed commits have been landed. Closing PR #13770 and removing active labels.