[webkit-changes] [WebKit/WebKit] 58234a: [CoordinatedGraphics] Tiled backing store is not n...

Carlos Garcia Campos noreply at github.com
Tue Oct 1 22:42:10 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 58234aa593e4507d3a697a4b5ed2fc00b0e2e5e7
      https://github.com/WebKit/WebKit/commit/58234aa593e4507d3a697a4b5ed2fc00b0e2e5e7
  Author: Carlos Garcia Campos <cgarcia at igalia.com>
  Date:   2024-10-01 (Tue, 01 Oct 2024)

  Changed paths:
    M Source/WebCore/platform/graphics/skia/SkiaThreadedPaintingPool.cpp
    M Source/WebCore/platform/graphics/skia/SkiaThreadedPaintingPool.h
    M Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp
    M Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.h
    M Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayerCairo.cpp
    M Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayerSkia.cpp

  Log Message:
  -----------
  [CoordinatedGraphics] Tiled backing store is not needed in paintTile()
https://bugs.webkit.org/show_bug.cgi?id=280679

Reviewed by Nikolas Zimmermann.

The function to map the dirty rect to contents is just scaling the
rectangle, and scale is already available by effectiveContentsScale().
Also make paintIntoGraphicsContext Skia specific, since it's only used
my Skia, and move it to CoordinatedGraphicsLayerSkia.cpp.

* Source/WebCore/platform/graphics/skia/SkiaThreadedPaintingPool.cpp:
(WebCore::SkiaThreadedPaintingPool::recordDisplayList const):
(WebCore::SkiaThreadedPaintingPool::postPaintingTask):
* Source/WebCore/platform/graphics/skia/SkiaThreadedPaintingPool.h:
* Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp:
(WebCore::CoordinatedGraphicsLayer::effectiveContentsScale const):
(WebCore::CoordinatedGraphicsLayer::updateContentBuffers):
(WebCore::CoordinatedGraphicsLayer::selfOrAncestorHaveNonAffineTransforms const):
(WebCore::CoordinatedGraphicsLayer::effectiveContentsScale): Deleted.
(WebCore::CoordinatedGraphicsLayer::paintIntoGraphicsContext const): Deleted.
(WebCore::CoordinatedGraphicsLayer::selfOrAncestorHaveNonAffineTransforms): Deleted.
* Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.h:
* Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayerCairo.cpp:
(WebCore::CoordinatedGraphicsLayer::paintTile):
* Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayerSkia.cpp:
(WebCore::CoordinatedGraphicsLayer::paintIntoGraphicsContext const):
(WebCore::CoordinatedGraphicsLayer::paintTile):

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



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


More information about the webkit-changes mailing list