Bug 219342 - WebGL rendering context should track the "context has been changed" state
Summary: WebGL rendering context should track the "context has been changed" state
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGL (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks: 263770
  Show dependency treegraph
 
Reported: 2020-11-30 00:48 PST by Kimmo Kinnunen
Modified: 2023-11-07 05:21 PST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kimmo Kinnunen 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.
Comment 1 Radar WebKit Bug Importer 2020-12-07 00:49:15 PST
<rdar://problem/72038783>
Comment 2 Kimmo Kinnunen 2023-11-07 05:21:14 PST
Fixed in bug 263772