Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 9b2205348498cf71f859084f609e85048aec5d60
      
https://github.com/WebKit/WebKit/commit/9b2205348498cf71f859084f609e85048aec5d60
  Author: Nikolas Zimmermann <[email protected]>
  Date:   2026-05-19 (Tue, 19 May 2026)

  Changed paths:
    M 
Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/ThreadedCompositor.cpp
    M Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/ThreadedCompositor.h

  Log Message:
  -----------
  [Skia] Add damage region visualization overlays
https://bugs.webkit.org/show_bug.cgi?id=315021

Reviewed by Carlos Garcia Campos.

The damage visualization overlay was specific to the TextureMapper path
(TextureMapperDamageVisualizer). Add a Skia counterpart so
WEBKIT_SHOW_DAMAGE also works when the Skia compositor is enabled.

Following the on-screen FPS counter approach, the Skia damage
visualization is drawn directly from ThreadedCompositor to the SkCanvas
rather than introducing a separate class. As with the TextureMapper
visualizer, while it is active the whole frame is invalidated each paint
so previously visualized damage rects get erased: damage is excluded
from compositing and the frame damage sent to the platform is forced to
Full.

* Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/ThreadedCompositor.cpp:
(WebKit::m_renderTimer):
(WebKit::ThreadedCompositor::setDamagePropagationFlags):
(WebKit::ThreadedCompositor::paintToSkiaCanvas):
(WebKit::ThreadedCompositor::drawSkiaDamage):
* Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/ThreadedCompositor.h:

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



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

Reply via email to