Repository navigation
[Skia] Port on-screen FPS counter drawing to Skia compositor - #65093
Merged
webkit-commit-queue merged 1 commit intoMay 18, 2026
Conversation
nikolaszimmermann
requested review from
alexgcastro,
carlosgcampos and
magomez
as code owners
May 18, 2026 08:14
Collaborator
|
EWS run on previous version of this PR (hash 2a1171c) Details |
nikolaszimmermann
force-pushed
the
eng/Skia-Port-on-screen-FPS-counter-drawing-to-Skia-compositor
branch
from
May 18, 2026 11:37
2a1171c to
cb175e6
Compare
Collaborator
|
EWS run on current version of this PR (hash cb175e6) Details |
carlosgcampos
approved these changes
May 18, 2026
webkit-commit-queue
pushed a commit
to nikolaszimmermann/WebKit
that referenced
this pull request
May 18, 2026
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 WebKit#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
https://bugs.webkit.org/show_bug.cgi?id=315003 Reviewed by Carlos Garcia Campos. The on-screen FPS overlay was specific to the TextureMapper path (TextureMapperFPSCounter). Draw a Skia counterpart directly from ThreadedCompositor so an on-screen FPS overlay is also available when the Skia compositor is enabled. The existing WEBKIT_SHOW_FPS envvar keeps its behavior (logging the FPS to the console, with its value setting the calculation interval in seconds). A new WEBKIT_DRAW_FPS=1 envvar additionally renders the on-screen overlay, reusing that calculation interval. WEBKIT_DRAW_FPS_FONT_SIZE configures the overlay font size (defaults to 14). * Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/ThreadedCompositor.cpp: (WebKit::ThreadedCompositor::paintToSkiaCanvas): (WebKit::ThreadedCompositor::initializeFPSCounter): (WebKit::ThreadedCompositor::updateFPSCounter): (WebKit::ThreadedCompositor::drawFPSCounter): * Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/ThreadedCompositor.h: Canonical link: https://commits.webkit.org/313409@main
webkit-commit-queue
force-pushed
the
eng/Skia-Port-on-screen-FPS-counter-drawing-to-Skia-compositor
branch
from
May 18, 2026 12:48
cb175e6 to
f077817
Compare
Collaborator
|
Committed 313409@main (f077817): https://commits.webkit.org/313409@main Reviewed commits have been landed. Closing PR #65093 and removing active labels. |
nikolaszimmermann
deleted the
eng/Skia-Port-on-screen-FPS-counter-drawing-to-Skia-compositor
branch
May 27, 2026 04:07
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
f077817
cb175e6
🛠 ios-sim🧪 ios-wk2🧪 ios-wk2-wpt🧪 api-ios🛠 ios-safer-cpp🧪 vision-wk2