Commit c4958cce authored by xidachen's avatar xidachen Committed by Commit bot

Expose WebGL2RenderingContext in worker

Currently WebGL2RenderingContext is not yet exposed in worker, which means
calling OffscreenCanvas.getContext('webgl2') fails in a worker.

This CL expose it with ExperimentalCanvasFeatures flag.
The test for this is upstreamed here:
https://github.com/KhronosGroup/WebGL/pull/2159

BUG=668727
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel

Review-Url: https://codereview.chromium.org/2531853003
Cr-Commit-Position: refs/heads/master@{#434966}
parent 058f4df4
......@@ -7,6 +7,7 @@
[
DoNotCheckConstants,
SetWrapperReferenceFrom=canvas,
Exposed(Worker ExperimentalCanvasFeatures, Window StableBlinkFeatures),
Custom=VisitDOMWrapper,
] interface WebGL2RenderingContext { };
WebGL2RenderingContext implements WebGLRenderingContextBase;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment