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 MacOS WebM Format Reader returns enabled for tracks that do not have samples 2021-05-27 09:18:46 +00:00
1.0.x
2.0.0 MacOS WebM Format Reader returns enabled for tracks that do not have samples 2021-05-27 09:18:46 +00:00
2.0.y Update WebGL conformance test suite 2021-03-24 2021-03-30 07:23:54 +00:00
conformance/extensions Rebaseline some WebGL tests that are only running on the dedicated WebGL bot. 2021-04-16 01:40:34 +00:00
conformance2/uniforms
pending Add webgl/pending/conformance/context/context-attributes-alpha-depth-stencil-antialias.html for test update 2021-03-30 08:51:16 +00:00
resources MacOS WebM Format Reader returns enabled for tracks that do not have samples 2021-05-27 09:18:46 +00:00
TestExpectations
draw-webgl-to-context2d-memory-test-expected.txt WebGL context image buffer accumulates the NativeImage contents when drawn to RemoteImageBufferProxy 2021-06-11 08:24:22 +00:00
draw-webgl-to-context2d-memory-test.html WebGL context image buffer accumulates the NativeImage contents when drawn to RemoteImageBufferProxy 2021-06-11 08:24:22 +00:00
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 Crash while reading WebGL drawing buffer if canvas image buffer allocation fails 2021-08-03 17:34:48 +00:00
webgl-oom-paint-document-no-crash.html Crash while reading WebGL drawing buffer if canvas image buffer allocation fails 2021-08-03 17:34:48 +00:00
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 [WebGL2] Turn the ENABLE_WEBGL2 flag on 2016-04-05 16:54:07 +00:00
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