Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 85b404d9be36a777d5765440185ace8e2fd7a600
      
https://github.com/WebKit/WebKit/commit/85b404d9be36a777d5765440185ace8e2fd7a600
  Author: Charlie Wolfe <[email protected]>
  Date:   2026-07-22 (Wed, 22 Jul 2026)

  Changed paths:
    M Source/WebCore/PlatformCocoa.cmake
    M Source/WebCore/SourcesCocoa.txt
    M Source/WebCore/WebCore.xcodeproj/project.pbxproj
    M Source/WebCore/platform/graphics/GraphicsLayer.cpp
    A Source/WebCore/platform/graphics/ca/FrameProcessIndicators.cpp
    A Source/WebCore/platform/graphics/ca/FrameProcessIndicators.h
    M Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp
    M Source/WebCore/platform/graphics/ca/GraphicsLayerCA.h

  Log Message:
  -----------
  Show process ID label alongside frame process border indicators
https://bugs.webkit.org/show_bug.cgi?id=320012
rdar://182947796

Reviewed by Simon Fraser.

Move the per-process debug border out of GraphicsLayer::getDebugBorderInfo into 
a new
FrameProcessIndicators class owned by GraphicsLayerCA. In addition to the 
PID-colored border, it
draws a text layer labeling each frame with its process ID, making it clearer 
which process a frame
is rendered in when debugging site isolation.

* Source/WebCore/PlatformCocoa.cmake:
* Source/WebCore/SourcesCocoa.txt:
* Source/WebCore/WebCore.xcodeproj/project.pbxproj:
* Source/WebCore/platform/graphics/GraphicsLayer.cpp:
(WebCore::GraphicsLayer::getDebugBorderInfo const):
(WebCore::GraphicsLayer::updateDebugIndicators):
* Source/WebCore/platform/graphics/ca/FrameProcessIndicators.cpp: Added.
(WebCore::FrameProcessIndicators::FrameProcessIndicators):
(WebCore::FrameProcessIndicators::~FrameProcessIndicators):
(WebCore::FrameProcessIndicators::appendLayers const):
(WebCore::FrameProcessIndicators::updateGeometry):
(WebCore::FrameProcessIndicators::updateContentsScale):
(WebCore::FrameProcessIndicators::borderColor):
(WebCore::FrameProcessIndicators::makeFont):
(WebCore::FrameProcessIndicators::size const):
(WebCore::FrameProcessIndicators::textVerticalBounds const):
(WebCore::FrameProcessIndicators::platformCALayerPaintContents):
* Source/WebCore/platform/graphics/ca/FrameProcessIndicators.h: Added.
* Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp:
(WebCore::GraphicsLayerCA::~GraphicsLayerCA):
(WebCore::GraphicsLayerCA::updateSublayerList):
(WebCore::GraphicsLayerCA::updateGeometry):
(WebCore::GraphicsLayerCA::ensureStructuralLayer):
* Source/WebCore/platform/graphics/ca/GraphicsLayerCA.h:

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



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

Reply via email to