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

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

  Log Message:
  -----------
  [Skia] Port on-screen FPS counter drawing to Skia compositor
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



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

Reply via email to