Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a13de3d752945ff8888bf38f86b045eed8c79966
      
https://github.com/WebKit/WebKit/commit/a13de3d752945ff8888bf38f86b045eed8c79966
  Author: Nikolas Zimmermann <[email protected]>
  Date:   2026-03-04 (Wed, 04 Mar 2026)

  Changed paths:
    M Source/WebCore/platform/graphics/skia/SkiaGPUAtlas.cpp
    M Source/WebCore/platform/graphics/skia/SkiaGPUAtlas.h
    M Source/WebCore/platform/graphics/skia/SkiaPaintingEngine.cpp
    M Source/WebCore/platform/graphics/skia/SkiaPaintingEngine.h
    M Source/WebCore/platform/graphics/skia/SkiaRecordingResult.h

  Log Message:
  -----------
  [GTK][WPE] Add single-entry GPU atlas cache to SkiaPaintingEngine
https://bugs.webkit.org/show_bug.cgi?id=309005

Reviewed by Carlos Garcia Campos.

When the image set is unchanged between frames reuse the GPU atlas from
the previous frame GPU instead of allocating new textures, uploading pixels
and re-creating the atlas. The cache is cleared when atlas layouts change
or disappear -- ensure the memory usage cannot grow unbounded.

Covered by existing tests.

* Source/WebCore/platform/graphics/skia/SkiaGPUAtlas.cpp:
(WebCore::SkiaGPUAtlas::uploadImages):
* Source/WebCore/platform/graphics/skia/SkiaGPUAtlas.h:
* Source/WebCore/platform/graphics/skia/SkiaPaintingEngine.cpp:
(WebCore::SkiaPaintingEngine::tryReuseCachedAtlases):
(WebCore::SkiaPaintingEngine::record):
* Source/WebCore/platform/graphics/skia/SkiaPaintingEngine.h:
* Source/WebCore/platform/graphics/skia/SkiaRecordingResult.h:

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



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

Reply via email to