Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6961eee0cf14707c0d592cdfd099ba066217f3b7
      
https://github.com/WebKit/WebKit/commit/6961eee0cf14707c0d592cdfd099ba066217f3b7
  Author: Carlos Garcia Campos <[email protected]>
  Date:   2026-04-24 (Fri, 24 Apr 2026)

  Changed paths:
    M Source/WebCore/platform/graphics/skia/SkiaBackingStore.cpp
    M Source/WebCore/platform/graphics/skia/SkiaBackingStore.h
    M 
Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedBackingStoreTile.cpp
    M 
Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedBackingStoreTile.h

  Log Message:
  -----------
  [GTK][WPE] Skia Compositor: avoid copies when getting the SkImage of a tile
https://bugs.webkit.org/show_bug.cgi?id=313217

Reviewed by Nikolas Zimmermann.

SkSurface::makeImageSnapshot() does a copy-on-write, but when the
surface is wrapping an external texture, it always copies because it
doesn't know if the texture will be modified externally. We know the
texture won't change, so we can use our own cached image wihtout
copying. Also remove the now unsused code from CoordinatedBackingStoreTile
that was moved to SkiaBackingStore.

* Source/WebCore/platform/graphics/skia/SkiaBackingStore.cpp:
(WebCore::SkiaBackingStore::Tile::tryEnsureSurface):
(WebCore::SkiaBackingStore::Tile::update):
(WebCore::SkiaBackingStore::Tile::image):
* Source/WebCore/platform/graphics/skia/SkiaBackingStore.h:
* 
Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedBackingStoreTile.cpp:
(WebCore::CoordinatedBackingStoreTile::processPendingUpdates):
(WebCore::CoordinatedBackingStoreTile::ensureSkImage): Deleted.
* 
Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedBackingStoreTile.h:

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



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

Reply via email to