Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 4f8cb95d1c49730ff289a546207beceda52d1953
      
https://github.com/WebKit/WebKit/commit/4f8cb95d1c49730ff289a546207beceda52d1953
  Author: Carlos Garcia Campos <[email protected]>
  Date:   2026-09-22 (Tue, 22 Sep 2026)

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

  Log Message:
  -----------
  [GTK][WPE] Skia compositor: do not create the 
CoordinatedPlatformLayerBufferDMABuf when compositor gr context is not available
https://bugs.webkit.org/show_bug.cgi?id=324699

Reviewed by Nikolas Zimmermann.

We are currently creating the buffer but without creating the promise
image and using a normal image as a fallback that is created whenever
the compositor calls skiaImage on the buffer. But this buffer never
reaches the compositor because the delegate doesn't have a layer. This
can only happen when rendering offscreen in which case the buffer is set
in the delegate but never actually used. We can avoid creating the
buffer and remove the fallback code.

* Source/WebCore/platform/graphics/DMABufBuffer.cpp:
(WebCore::DMABufBuffer::createImage): Deleted.
* Source/WebCore/platform/graphics/DMABufBuffer.h:
* 
Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedPlatformLayerBufferDMABuf.cpp:
(WebCore::CoordinatedPlatformLayerBufferDMABuf::create):
(WebCore::CoordinatedPlatformLayerBufferDMABuf::CoordinatedPlatformLayerBufferDMABuf):
(WebCore::CoordinatedPlatformLayerBufferDMABuf::initializeSkiaImage):
(WebCore::CoordinatedPlatformLayerBufferDMABuf::createSkiaImageIfNeeded): 
Deleted.
(WebCore::CoordinatedPlatformLayerBufferDMABuf::skiaImage): Deleted.
* 
Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedPlatformLayerBufferDMABuf.h:

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



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

Reply via email to