SkiaRenderer: fix the artifacts with Wayland and Ozone
The artifacts is because skia API is called in SkiaOutputDeviceBufferQueue::PageFlipComplete. The Skia calls may alter driver GL state which is not tracked by chrome GPU. If use_virtualized_gl_contexts is used, WebGL and compositer are sharing one platform GL context. since we cannot track GL state changed by skia, so we cannot recover all GL state when switching to virtualized GL context for WebGL. So it causes artifacts for WebGL. Fix the problem by forcing a full GL state resetting. Bug: 1053842 Change-Id: I14cd0f2fc389c93f6888ec5a422e1752e1e55ffe Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2094335Reviewed-by:Vasiliy Telezhnikov <vasilyt@chromium.org> Commit-Queue: Peng Huang <penghuang@chromium.org> Cr-Commit-Position: refs/heads/master@{#748192}
Showing
Please register or sign in to comment