Bug 233123

Summary: Canvas rendering context should not be tied to PlatformLayer
Product: WebKit Reporter: Kimmo Kinnunen <kkinnunen>
Component: WebGLAssignee: Kimmo Kinnunen <kkinnunen>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: dino, Hironori.Fujii, kbr, kkinnunen, simon.fraser, thorton, wenson_hsieh
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 233175    
Bug Blocks: 231009    
Attachments:
Description Flags
Patch
none
Patch
none
Patch none

Description Kimmo Kinnunen 2021-11-15 05:42:54 PST
Canvas rendering context should not be tied to PlatformLayer

Currently CanvasRenderingContext "draws to" PlatformLayer, i.e. has CanvasRenderingContext::platformLayer().
This does not work for UI-side compositing, as we do not want the WebGL graphics context need CALayer in the UI process.

Instead there should be some sort of abstraction that can be used in conjunction with GraphicsLayer contents property, so that what CanvasRenderingContext draws can be shown as GraphicsLayer contents.
Comment 1 Kimmo Kinnunen 2021-11-15 06:20:56 PST
Created attachment 444245 [details]
Patch
Comment 2 Kimmo Kinnunen 2021-11-16 07:39:00 PST
Created attachment 444380 [details]
Patch
Comment 3 Kimmo Kinnunen 2021-11-16 07:43:05 PST
Created attachment 444381 [details]
Patch
Comment 4 Kimmo Kinnunen 2021-11-18 10:51:33 PST
Currently implemented as part of the parent patch in bug 231009