[webkit-changes] [WebKit/WebKit] b131d7: [GTK][WPE][Skia] Avoid texture copying for acceler...

Nikolas Zimmermann noreply at github.com
Wed Sep 25 16:31:45 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b131d74c1eed28d2d729f044ee72f8581e28e706
      https://github.com/WebKit/WebKit/commit/b131d74c1eed28d2d729f044ee72f8581e28e706
  Author: Nikolas Zimmermann <nzimmermann at igalia.com>
  Date:   2024-09-25 (Wed, 25 Sep 2024)

  Changed paths:
    M Source/WebCore/platform/graphics/texmap/BitmapTexture.cpp
    M Source/WebCore/platform/graphics/texmap/BitmapTexture.h
    M Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedBackingStore.cpp

  Log Message:
  -----------
  [GTK][WPE][Skia] Avoid texture copying for accelerated buffers if possible
https://bugs.webkit.org/show_bug.cgi?id=280066

Reviewed by Miguel Gomez.

The AcceleratedBuffers nowadays wrap a BitmapTexture. If the
BitmapTexture covers the whole tile texture size, we can swap the tile
texture with the texture stored in the AcceleratedBuffer and save a
texture copy.

Covered by existing tests.

* Source/WebCore/platform/graphics/texmap/BitmapTexture.cpp:
(WebCore::BitmapTexture::BitmapTexture):
(WebCore::BitmapTexture::swapTexture):
(WebCore::BitmapTexture::reset):
(WebCore::BitmapTexture::updateContents):
* Source/WebCore/platform/graphics/texmap/BitmapTexture.h:
* Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedBackingStore.cpp:
(WebCore::CoordinatedBackingStoreTile::swapBuffers):

Canonical link: https://commits.webkit.org/284250@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