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

Kimmo Kinnunen
Reported 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.
Attachments
Patch (77.96 KB, patch)
2021-11-15 06:20 PST, Kimmo Kinnunen
no flags
Patch (72.41 KB, patch)
2021-11-16 07:39 PST, Kimmo Kinnunen
no flags
Patch (72.28 KB, patch)
2021-11-16 07:43 PST, Kimmo Kinnunen
no flags
Kimmo Kinnunen
Comment 1 2021-11-15 06:20:56 PST
Kimmo Kinnunen
Comment 2 2021-11-16 07:39:00 PST
Kimmo Kinnunen
Comment 3 2021-11-16 07:43:05 PST
Kimmo Kinnunen
Comment 4 2021-11-18 10:51:33 PST
Currently implemented as part of the parent patch in bug 231009
Note You need to log in before you can comment on or make changes to this bug.