[webkit-changes] [WebKit/WebKit] c529ed: Require the GPUP to run WebGL in worker threads.

mattwoodrow noreply at github.com
Sun Jan 22 13:42:01 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c529edd6c6f3e4f4d9d9737df014b6684b2b6264
      https://github.com/WebKit/WebKit/commit/c529edd6c6f3e4f4d9d9737df014b6684b2b6264
  Author: Matt Woodrow <mattwoodrow at apple.com>
  Date:   2023-01-22 (Sun, 22 Jan 2023)

  Changed paths:
    M LayoutTests/platform/mac-wk2/TestExpectations
    M Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml
    M Source/WebCore/html/OffscreenCanvas.cpp

  Log Message:
  -----------
  Require the GPUP to run WebGL in worker threads.
https://bugs.webkit.org/show_bug.cgi?id=250479

Reviewed by Kimmo Kinnunen.

We can't properly handle running WebGL in multiple threads concurrently in the WebProcess, so require the GPUP (where it gets run on a single work queue) before allowing WebGL in worker threads.

This also adds a preference to explicitly disable WebGL in worker threads if desired.

* Source/WTF/Scripts/Prefert ences/UnifiedWebPreferences.yaml:
* Source/WebCore/html/OffscreenCanvas.cpp:
(WebCore::shouldEnableWebGL):
(WebCore::OffscreenCanvas::createContextWebGL):

Canonical link: https://commits.webkit.org/259196@main




More information about the webkit-changes mailing list