Bug 219342

Summary: WebGL rendering context should track the "context has been changed" state
Product: WebKit Reporter: Kimmo Kinnunen <kkinnunen>
Component: WebGLAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: dino, jonlee, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=webglgpup
https://bugs.webkit.org/show_bug.cgi?id=263772
Bug Depends on:    
Bug Blocks: 263770    

Kimmo Kinnunen
Reported 2020-11-30 00:48:10 PST
WebGL rendering context should track the "context has been changed" state. Currently the WebGL rendering context kind of tracks this, but still sends this also to the GraphicsContextGL(OpenGL). This state is used to understand whether the prepare for presentation should create a new frame or not. If the context has not been changed, compositing skips swapping a new frame. This should be instead tracked at the caller level and trigger compositing only when exactly needed. Having this variable complicates especially the GPU Process implementation, where this variable needs to be tracked in both web process as well as the gpu process. Having this variable complicates the WebGL rendering context implicit back buffer clear implementation, as it is consulted in redundant fashion.
Attachments
Radar WebKit Bug Importer
Comment 1 2020-12-07 00:49:15 PST
Kimmo Kinnunen
Comment 2 2023-11-07 05:21:14 PST
Fixed in bug 263772
Note You need to log in before you can comment on or make changes to this bug.