[webkit-changes] [WebKit/WebKit] 3a7c3a: Restored WebGL context is not visible until layout
Kimmo Kinnunen
noreply at github.com
Wed Feb 22 12:05:19 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 3a7c3a3c6ad39d3723704d8d5568c35475c4db7b
https://github.com/WebKit/WebKit/commit/3a7c3a3c6ad39d3723704d8d5568c35475c4db7b
Author: Kimmo Kinnunen <kkinnunen at apple.com>
Date: 2023-02-22 (Wed, 22 Feb 2023)
Changed paths:
A LayoutTests/webgl/webgl-visible-after-context-restore-expected.html
A LayoutTests/webgl/webgl-visible-after-context-restore.html
M Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp
Log Message:
-----------
Restored WebGL context is not visible until layout
https://bugs.webkit.org/show_bug.cgi?id=252737
rdar://104084385
Reviewed by Antti Koivisto.
Force reconfiguration of the layer backing store for WebGL element after
successful restore. The layerContentsDisplayDelegate is per
GraphicsContextGL context, and losing and restoring the context means
the delegate needs to be changed too.
* LayoutTests/webgl/webgl-visible-after-context-restore-expected.html: Added.
* LayoutTests/webgl/webgl-visible-after-context-restore.html: Added.
* Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp:
(WebCore::WebGLRenderingContextBase::maybeRestoreContext):
Canonical link: https://commits.webkit.org/260693@main
More information about the webkit-changes
mailing list