Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 7b846fecb22f12a6edf42a33367768e188374bd9
https://github.com/WebKit/WebKit/commit/7b846fecb22f12a6edf42a33367768e188374bd9
Author: Nikolas Zimmermann <[email protected]>
Date: 2026-05-18 (Mon, 18 May 2026)
Changed paths:
M Source/WebCore/platform/graphics/skia/SkiaCompositingLayer.cpp
M Source/WebCore/platform/graphics/skia/SkiaCompositingLayer.h
Log Message:
-----------
[Skia] Optimize SkiaCompositingLayer repaint counter drawing
https://bugs.webkit.org/show_bug.cgi?id=315016
Reviewed by Carlos Garcia Campos.
The debug repaint counter recomputed its string and re-measured its
text geometry on every composite of the layer, even though the count
only changes when the layer actually repaints its content. Cache the
shaped string and geometry, recomputing only when the count changes,
matching the on-screen FPS counter in ThreadedCompositor (PR #65093).
* Source/WebCore/platform/graphics/skia/SkiaCompositingLayer.cpp:
(WebCore::SkiaCompositingLayer::paintSelf):
* Source/WebCore/platform/graphics/skia/SkiaCompositingLayer.h:
Canonical link: https://commits.webkit.org/313408@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications