Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 2a6af1e45406751495293f8ab2878dafc4506fcb
      
https://github.com/WebKit/WebKit/commit/2a6af1e45406751495293f8ab2878dafc4506fcb
  Author: Patrick Griffis <[email protected]>
  Date:   2026-09-01 (Tue, 01 Sep 2026)

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

  Log Message:
  -----------
  [GTK][WPE] PromiseDMABufImageContext is reference counted across threads
https://bugs.webkit.org/show_bug.cgi?id=323052

Reviewed by Carlos Garcia Campos.

PromiseDMABufImageContext is created on the thread producing the buffer, WebGL's
in the case of GraphicsContextGLTextureMapperGBM::prepareForDisplay(), and 
handed
to Skia as the context of a promise image texture. Skia releases those contexts
while flushing on the compositing thread, so the reference count is touched from
two threads while being a plain RefCounted and hits an ASSERT.

Make it ThreadSafeRefCounted. DMABufBuffer, which it holds, already is.

* 
Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedPlatformLayerBufferDMABuf.cpp:

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



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

Reply via email to