[webkit-changes] [WebKit/WebKit] bb9d04: [CoordinatedGraphics] Swap contents buffer earlier...

Carlos Garcia Campos noreply at github.com
Fri Jan 17 04:55:41 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: bb9d048ddb6ccce717ab32f383bf3060a6b4d640
      https://github.com/WebKit/WebKit/commit/bb9d048ddb6ccce717ab32f383bf3060a6b4d640
  Author: Carlos Garcia Campos <cgarcia at igalia.com>
  Date:   2025-01-17 (Fri, 17 Jan 2025)

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

  Log Message:
  -----------
  [CoordinatedGraphics] Swap contents buffer earlier when flushing layers
https://bugs.webkit.org/show_bug.cgi?id=286137

Reviewed by Miguel Gomez.

We currently update the contents buffer after all layers have committed
changes, but we can do it earlier, when the contents are set or marked
for display.

* Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedPlatformLayer.cpp:
(WebCore::CoordinatedPlatformLayer::setContentsBuffer):
(WebCore::CoordinatedPlatformLayer::setContentsBufferNeedsDisplay):
(WebCore::CoordinatedPlatformLayer::updateContents):
* Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedPlatformLayer.h:
* Source/WebCore/platform/graphics/texmap/coordinated/GraphicsLayerCoordinated.cpp:
(WebCore::GraphicsLayerCoordinated::setContentsNeedsDisplay):
(WebCore::GraphicsLayerCoordinated::setContentsToPlatformLayer):
(WebCore::GraphicsLayerCoordinated::commitLayerChanges):

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