haikuwebkit/LayoutTests/webgl
Kyle Piddington 38045a526a WebGL via Metal experimental feature does not correctly toggle metal backend
https://bugs.webkit.org/show_bug.cgi?id=229267
<rdar://81855735>

Source/WebCore:

Patch by Kyle Piddington <kpiddington@apple.com> on 2021-08-19
Reviewed by Dean Jackson.

GraphicsContextGLAttributes defines 'useMetal' as 'true' by default.
Since this branch was only checking if Metal was enabled via the
setting, rather than checking the status of the flag, the metal backend
was never disabled, even when requested.

Tests: webgl/webgl-metal-disabled.html
       webgl/webgl-metal-enabled.html

* WebCore.xcodeproj/project.pbxproj:
* html/canvas/WebGLRenderingContextBase.cpp:
(WebCore::WebGLRenderingContextBase::create):
* testing/Internals.cpp:
(WebCore::Internals::requestedMetal):
* testing/Internals.h:
* testing/Internals.idl:
* testing/Internals.mm:
(WebCore::Internals::platformSupportsMetal):

LayoutTests:

Add tests to verify WebGL feature flag works as intended.

Patch by Kyle Piddington <kpiddington@apple.com> on 2021-08-19
Reviewed by Dean Jackson.

* webgl/webgl-metal-disabled-expected.txt: Added.
* webgl/webgl-metal-disabled.html: Added.
* webgl/webgl-metal-enabled-expected.txt: Added.
* webgl/webgl-metal-enabled.html: Added.

Canonical link: https://commits.webkit.org/240682@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@281245 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-08-19 16:28:04 +00:00
..
1.0.3
1.0.x
2.0.0
2.0.y
conformance/extensions
conformance2/uniforms
pending
resources
TestExpectations
draw-webgl-to-context2d-memory-test-expected.txt
draw-webgl-to-context2d-memory-test.html
many-contexts-access-after-loss-expected.txt
many-contexts-access-after-loss.html
many-contexts-expected.txt
many-contexts.html
max-active-contexts-console-warning-expected.txt
max-active-contexts-console-warning.html
max-active-contexts-gc-expected.txt
max-active-contexts-gc.html
max-active-contexts-oldest-context-lost-expected.txt
max-active-contexts-oldest-context-lost.html
max-active-contexts-webglcontextlost-prevent-default-expected.txt
max-active-contexts-webglcontextlost-prevent-default.html
preparation-removed-from-document-expected.txt
preparation-removed-from-document.html
smell-test-expected.html
smell-test.html
webgl-allow-shared-expected.txt
webgl-allow-shared.html
webgl-backing-store-size-update-expected.html
webgl-backing-store-size-update.html
webgl-border-expected.html
webgl-border.html
webgl-box-shadow-expected.html
webgl-box-shadow.html
webgl-extension-directive-location-no-error-expected.txt
webgl-extension-directive-location-no-error.html
webgl-metal-disabled-expected.txt WebGL via Metal experimental feature does not correctly toggle metal backend 2021-08-19 16:28:04 +00:00
webgl-metal-disabled.html WebGL via Metal experimental feature does not correctly toggle metal backend 2021-08-19 16:28:04 +00:00
webgl-metal-enabled-expected.txt WebGL via Metal experimental feature does not correctly toggle metal backend 2021-08-19 16:28:04 +00:00
webgl-metal-enabled.html WebGL via Metal experimental feature does not correctly toggle metal backend 2021-08-19 16:28:04 +00:00
webgl-oom-paint-document-no-crash-expected.html
webgl-oom-paint-document-no-crash.html
webgl-padding-expected.html
webgl-padding.html
webgl-texture-image-buffer-reuse-expected.html
webgl-texture-image-buffer-reuse.html
webgl-vertex-array-object-defined-expected.txt
webgl-vertex-array-object-defined.html
webgl2-primitive-restart-expected.html
webgl2-primitive-restart.html
webgl2-rendering-context-defined-expected.txt
webgl2-rendering-context-defined.html
webgl2-rendering-context-obtain-expected.txt
webgl2-rendering-context-obtain.html