[webkit-changes] [WebKit/WebKit] 3d5f7b: GraphicsContextGLAttributes contains deviceScaleFa...

Kimmo Kinnunen noreply at github.com
Fri Dec 8 03:13:41 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 3d5f7be48aec3a535d24028a840ded65c82bb1e7
      https://github.com/WebKit/WebKit/commit/3d5f7be48aec3a535d24028a840ded65c82bb1e7
  Author: Kimmo Kinnunen <kkinnunen at apple.com>
  Date:   2023-12-08 (Fri, 08 Dec 2023)

  Changed paths:
    M Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp
    M Source/WebCore/platform/graphics/GraphicsContextGLAttributes.h
    M Source/WebCore/platform/graphics/cocoa/WebProcessGraphicsContextGLCocoa.mm
    M Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in
    M Source/WebKit/WebProcess/GPU/graphics/cocoa/RemoteGraphicsContextGLProxyCocoa.mm

  Log Message:
  -----------
  GraphicsContextGLAttributes contains deviceScaleFactor attribute
https://bugs.webkit.org/show_bug.cgi?id=265790
rdar://119130039

Reviewed by Matt Woodrow.

Avoid setting content scale factor via the GraphicsLayer contents
display delegate. The platform layer contents scale does not matter as
the contents is provided by the WebGL rendering.

* Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp:
(WebCore::resolveGraphicsContextGLAttributes):
(WebCore::WebGLRenderingContextBase::create):
(WebCore::WebGLRenderingContextBase::maybeRestoreContext):
* Source/WebCore/platform/graphics/GraphicsContextGLAttributes.h:
* Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp:
(WebCore::GraphicsLayerCA::updateContentsScale):
* Source/WebCore/platform/graphics/cocoa/WebProcessGraphicsContextGLCocoa.mm:
* Source/WebKit/WebProcess/GPU/graphics/cocoa/RemoteGraphicsContextGLProxyCocoa.mm:

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




More information about the webkit-changes mailing list