[webkit-changes] [WebKit/WebKit] 23375c: WebGL context is constructed with window GPU ID if...

Kimmo Kinnunen noreply at github.com
Thu Aug 8 07:16:52 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 23375c07162cd579617a30a98114a8b30a798542
      https://github.com/WebKit/WebKit/commit/23375c07162cd579617a30a98114a8b30a798542
  Author: Kimmo Kinnunen <kkinnunen at apple.com>
  Date:   2024-08-08 (Thu, 08 Aug 2024)

  Changed paths:
    M Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp
    M Source/WebCore/platform/PlatformScreen.h
    M Source/WebCore/platform/graphics/GraphicsContextGLAttributes.h
    M Source/WebCore/platform/graphics/cocoa/GraphicsContextGLCocoa.mm
    M Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in

  Log Message:
  -----------
  WebGL context is constructed with window GPU ID if low-power GPU is requested
https://bugs.webkit.org/show_bug.cgi?id=277629
rdar://133211880

Reviewed by Dan Glastonbury.

If the page asks for low-power GPU, only use this as the instantiation
criteria.
Also remove macCatalyst ifdefs in some places. On macCatalyst, the code
does not populate the GPUID of the window in the first place.

* Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp:
(WebCore::resolveGraphicsContextGLAttributes):
* Source/WebCore/platform/PlatformScreen.h:
* Source/WebCore/platform/graphics/cocoa/GraphicsContextGLCocoa.mm:
(WebCore::initializeEGLDisplay):
* Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in:

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



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list