Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c21fefd702502d7553fbf63c601e410fef1dad63
      
https://github.com/WebKit/WebKit/commit/c21fefd702502d7553fbf63c601e410fef1dad63
  Author: Matt Woodrow <[email protected]>
  Date:   2026-01-29 (Thu, 29 Jan 2026)

  Changed paths:
    M Source/WTF/wtf/PlatformHave.h
    M Source/WebCore/Configurations/AllowedSPI.toml
    M Source/WebCore/PAL/pal/spi/cg/CoreGraphicsSPI.h
    M Source/WebCore/platform/graphics/GraphicsContext.cpp
    M Source/WebCore/platform/graphics/GraphicsContext.h
    M Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp
    M Source/WebCore/platform/graphics/cg/GraphicsContextCG.h
    M Source/WebKit/GPUProcess/graphics/RemoteGraphicsContext.cpp

  Log Message:
  -----------
  Use CGContextStrokeArc when available.
https://bugs.webkit.org/show_bug.cgi?id=306488
<rdar://169137823>

Reviewed by Simon Fraser.

Using the direct stroke arc function avoids needing to allocate a path object,
so we should do so when it is available.

* Source/WTF/wtf/PlatformHave.h:
* Source/WebCore/PAL/pal/spi/cg/CoreGraphicsSPI.h:
* Source/WebCore/platform/graphics/GraphicsContext.cpp:
(WebCore::GraphicsContext::strokeArc):
* Source/WebCore/platform/graphics/GraphicsContext.h:
* Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp:
(WebCore::GraphicsContextCG::strokeArc):
* Source/WebCore/platform/graphics/cg/GraphicsContextCG.h:
* Source/WebKit/GPUProcess/graphics/RemoteGraphicsContext.cpp:
(WebKit::RemoteGraphicsContext::strokeArc):

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



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

Reply via email to