Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6580afcaf2cd700c78e415ec852b2c37227fce88
      
https://github.com/WebKit/WebKit/commit/6580afcaf2cd700c78e415ec852b2c37227fce88
  Author: Fujii Hironori <[email protected]>
  Date:   2026-08-03 (Mon, 03 Aug 2026)

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

  Log Message:
  -----------
  [Coordinated Graphics] Unnecessary texture allocation in the fast path of 
CoordinatedBackingStoreTile::processPendingUpdates
https://bugs.webkit.org/show_bug.cgi?id=320881

Reviewed by Carlos Garcia Campos.

CoordinatedBackingStoreTile::processPendingUpdates() has the fast path for the
case the whole tile content is changed. In this case, a texture was allocated,
then it was just freed in the case m_texture is null.

SkiaBackingStore also has this fast path, but it doesn't have this problem.
Follow the style of SkiaBackingStore.

* 
Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedBackingStoreTile.cpp:
(WebCore::CoordinatedBackingStoreTile::ensureTexture): Added.
(WebCore::CoordinatedBackingStoreTile::processPendingUpdates):
* 
Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedBackingStoreTile.h:

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



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

Reply via email to