Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 47504401f98bf9cc8ab87ccc76366504f34ca2ba
https://github.com/WebKit/WebKit/commit/47504401f98bf9cc8ab87ccc76366504f34ca2ba
Author: Kimmo Kinnunen <[email protected]>
Date: 2026-05-06 (Wed, 06 May 2026)
Changed paths:
M LayoutTests/webgl/query-context-lost-restore-expected.txt
M LayoutTests/webgl/query-context-lost-restore.html
M Source/WebCore/html/canvas/EXTDisjointTimerQuery.cpp
M Source/WebCore/html/canvas/EXTDisjointTimerQuery.h
M Source/WebCore/html/canvas/EXTDisjointTimerQuery.idl
M Source/WebCore/html/canvas/WebGLTimerQueryEXT.cpp
M Source/WebCore/html/canvas/WebGLTimerQueryEXT.h
Log Message:
-----------
WebGL: WebGLTimerQueryEXT creation is not infallible
https://bugs.webkit.org/show_bug.cgi?id=314071
rdar://176259418
Reviewed by Dan Glastonbury.
Similar to other query objects, make WebGLTimerQueryEXT always succeed.
Create a dummy object if the context is lost at the moment of creation.
* LayoutTests/webgl/query-context-lost-restore-expected.txt:
* LayoutTests/webgl/query-context-lost-restore.html:
* Source/WebCore/html/canvas/EXTDisjointTimerQuery.cpp:
(WebCore::EXTDisjointTimerQuery::createQueryEXT):
* Source/WebCore/html/canvas/EXTDisjointTimerQuery.h:
* Source/WebCore/html/canvas/EXTDisjointTimerQuery.idl:
* Source/WebCore/html/canvas/WebGLTimerQueryEXT.cpp:
(WebCore::WebGLTimerQueryEXT::createLost):
(WebCore::WebGLTimerQueryEXT::create):
* Source/WebCore/html/canvas/WebGLTimerQueryEXT.h:
Canonical link: https://commits.webkit.org/312764@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications