Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 4267ab4b310334521a7943b7a370a41b5cd316d7
      
https://github.com/WebKit/WebKit/commit/4267ab4b310334521a7943b7a370a41b5cd316d7
  Author: Nikolas Zimmermann <[email protected]>
  Date:   2026-06-17 (Wed, 17 Jun 2026)

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

  Log Message:
  -----------
  [GTK][WPE] Move per-buffer frame-damage bookkeeping into 
SwapChainDamageTracker
https://bugs.webkit.org/show_bug.cgi?id=317290

Reviewed by Carlos Garcia Campos.

Prepare for further enhancments when using the damage information to
restrict the area needed for composition in the Skia compositor: Extract
AcceleratedSurface's per-buffer frame-damage accounting - the frame
damage, its rectangle threshold, and the per-target accumulation done by
renderTargetDamage() - into a dedicated SwapChainDamageTracker, and replace
SwapChain::addDamage() with a forEachTarget() helper the tracker uses to
propagate damage across targets.

The public API was left untouched, the new SwapChainDamageTracker is
left as internal detail to AcceleratedSurface, for better encapsulation.

* Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/AcceleratedSurface.cpp:
(WebKit::AcceleratedSurface::AcceleratedSurface):
(WebKit::AcceleratedSurface::SwapChainDamageTracker::takeFrameDamageRects):
(WebKit::AcceleratedSurface::SwapChainDamageTracker::damageForTarget):
(WebKit::AcceleratedSurface::willRenderFrame):
(WebKit::AcceleratedSurface::didRenderFrame):
(WebKit::AcceleratedSurface::renderTargetDamage):
(WebKit::AcceleratedSurface::SwapChain::addDamage): Deleted.
(WebKit::AcceleratedSurface::setFrameDamage): Deleted.
* Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/AcceleratedSurface.h:

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



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

Reply via email to