[webkit-changes] [WebKit/WebKit] 3f6d7f: Give TiledBacking a TiledBackingClient that allows...

Simon Fraser noreply at github.com
Tue Feb 13 13:54:12 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 3f6d7f5ff24f92cb8327e9d67a87755d6d3d47a4
      https://github.com/WebKit/WebKit/commit/3f6d7f5ff24f92cb8327e9d67a87755d6d3d47a4
  Author: Simon Fraser <simon.fraser at apple.com>
  Date:   2024-02-13 (Tue, 13 Feb 2024)

  Changed paths:
    M Source/WebCore/platform/graphics/TiledBacking.h
    M Source/WebCore/platform/graphics/ca/TileController.cpp
    M Source/WebCore/platform/graphics/ca/TileController.h
    M Source/WebCore/platform/graphics/ca/TileGrid.cpp
    M Source/WebCore/platform/graphics/ca/TileGrid.h
    M Source/WebKit/WebProcess/WebPage/wc/GraphicsLayerWC.cpp

  Log Message:
  -----------
  Give TiledBacking a TiledBackingClient that allows a client more knowledge of tile painting
https://bugs.webkit.org/show_bug.cgi?id=269268
rdar://122850594

Reviewed by Tim Horton.

Introduce TiledBackingClient, a weakly held client of TiledBacking that gets informed
when a tile is repainted or removed, and when all tiles are invalidate.

UnifiedPDFPlugin will use this as a basis for caching.

The client is informed about events per tile using TileGridIndex and TileIndex to
identify tiles; TileGridIndex is 0 for the main tile grid, and 1 for the optional zoomed-out
tile grid.

* Source/WebCore/platform/graphics/TiledBacking.h:
* Source/WebCore/platform/graphics/ca/TileController.cpp:
(WebCore::TileController::setClient):
(WebCore::TileController::willRepaintTile):
(WebCore::TileController::willRemoveTile):
(WebCore::TileController::willRepaintAllTiles):
* Source/WebCore/platform/graphics/ca/TileController.h:
* Source/WebCore/platform/graphics/ca/TileGrid.cpp:
(WebCore::TileGrid::setScale):
(WebCore::TileGrid::setNeedsDisplay):
(WebCore::TileGrid::setTileNeedsDisplayInRect):
(WebCore::TileGrid::removeTiles):
(WebCore::TileGrid::revalidateTiles):
(WebCore::TileGrid::ensureTilesForRect):
* Source/WebCore/platform/graphics/ca/TileGrid.h:
* Source/WebKit/WebProcess/WebPage/wc/GraphicsLayerWC.cpp:

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




More information about the webkit-changes mailing list