Currently we can do OffscreenCanvas.getContext('webgl2') in main, but not in a worker because WebGL2RenderingContext is not exposed to worker yet. We should do that.
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/c4958ccef3f38666ec03a3dbf9cc6e929e8b69c9 commit c4958ccef3f38666ec03a3dbf9cc6e929e8b69c9 Author: xidachen <xidachen@chromium.org> Date: Tue Nov 29 13:05:37 2016 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} [modify] https://crrev.com/c4958ccef3f38666ec03a3dbf9cc6e929e8b69c9/third_party/WebKit/LayoutTests/http/tests/serviceworker/webexposed/global-interface-listing-service-worker-expected.txt [modify] https://crrev.com/c4958ccef3f38666ec03a3dbf9cc6e929e8b69c9/third_party/WebKit/LayoutTests/virtual/service-worker-navigation-preload/http/tests/serviceworker/webexposed/global-interface-listing-service-worker-expected.txt [modify] https://crrev.com/c4958ccef3f38666ec03a3dbf9cc6e929e8b69c9/third_party/WebKit/LayoutTests/webexposed/global-interface-listing-dedicated-worker-expected.txt [modify] https://crrev.com/c4958ccef3f38666ec03a3dbf9cc6e929e8b69c9/third_party/WebKit/LayoutTests/webexposed/global-interface-listing-shared-worker-expected.txt [modify] https://crrev.com/c4958ccef3f38666ec03a3dbf9cc6e929e8b69c9/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContext.idl
Comment 1 by rbyers@chromium.org
, Nov 28 2016