Bug 246681

Summary: Add function to copy the state of a GraphicsContext to another GraphicsContext
Product: WebKit Reporter: Said Abou-Hallawa <sabouhallawa>
Component: CanvasAssignee: Said Abou-Hallawa <sabouhallawa>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, dino, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 198416    

Description Said Abou-Hallawa 2022-10-18 01:35:43 PDT
Changes in GraphicsContextState are tracked by an OptionSet. GraphicsContextState::mergeChanges() relies on this OptionSet to copy the changes from GraphicsContextState to another. This should work correctly if the two GraphicsContexts are synced all the times. But what we need for the canvas filter API is to copy the current GraphicsContextState of a canvas context to a newly created ImageBuffer.
Comment 1 Radar WebKit Bug Importer 2022-10-18 01:41:27 PDT
<rdar://problem/101282195>
Comment 2 Said Abou-Hallawa 2022-10-18 01:42:15 PDT
Pull request: https://github.com/WebKit/WebKit/pull/5485
Comment 3 EWS 2022-10-19 10:12:07 PDT
Committed 255741@main (f3147a407737): <https://commits.webkit.org/255741@main>

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