Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 05ac376de6ca7049d954017408a5a941c3c896dd
      
https://github.com/WebKit/WebKit/commit/05ac376de6ca7049d954017408a5a941c3c896dd
  Author: Claudio Saavedra <[email protected]>
  Date:   2026-06-15 (Mon, 15 Jun 2026)

  Changed paths:
    M Source/WebCore/platform/graphics/skia/SkiaGPUAtlas.cpp
    M Source/WebCore/platform/graphics/skia/SkiaUtilities.cpp

  Log Message:
  -----------
  REGRESSION(315027@main): [GTK] skia/src/gpu/ganesh/GrSurfaceProxy.cpp:484: 
fatal error: "assertf(surface->backendFormat() == fFormat): OpenGL-BGRA8 != 
OpenGL-RGBA8"
https://bugs.webkit.org/show_bug.cgi?id=317120

Reviewed by Carlos Garcia Campos.

Pass the color type from the image to the backend format in 
createPromiseImageIfNeeded()
instead of assuming RGBA8888.

Do the same in SkiaGPUAtlas::atlasImageForCurrentThread(), where the promise 
image also
assumed RGBA8888 while the atlas texture uses a BGRA8888 layout, just like the 
non-promise
path that borrows the texture already does.

Covered by existing tests.

* Source/WebCore/platform/graphics/skia/SkiaGPUAtlas.cpp:
(WebCore::SkiaGPUAtlas::atlasImageForCurrentThread const):
* Source/WebCore/platform/graphics/skia/SkiaUtilities.cpp:
(WebCore::SkiaUtilities::createPromiseImageIfNeeded):

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



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

Reply via email to