Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0862297dc1936603eb7417ea3f16c06304c2f7c7
      
https://github.com/WebKit/WebKit/commit/0862297dc1936603eb7417ea3f16c06304c2f7c7
  Author: Carlos Garcia Campos <[email protected]>
  Date:   2026-05-18 (Mon, 18 May 2026)

  Changed paths:
    M Source/WebCore/platform/graphics/skia/SkiaBackingStore.cpp
    M Source/WebCore/platform/graphics/skia/SkiaUtilities.cpp
    M Source/WebCore/platform/graphics/skia/SkiaUtilities.h
    M 
Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedPlatformLayerBufferNativeImage.cpp

  Log Message:
  -----------
  [GTK][WPE] Skia Compositor: use SkCanvas::drawImageRect instead of 
SkSurface::writePixels to upload BGRA buffers to textures
https://bugs.webkit.org/show_bug.cgi?id=315011

Reviewed by Nikolas Zimmermann.

When using SkSurface::writePixels the BGRA to RGBA conversion is always
done by CPU before pixels are uploaded. With SkCanvas::drawImageRect is
the GL platform supports BGRA, the pixels are uploaded as BGRA and then
converted by the GPU before painting.

* Source/WebCore/platform/graphics/skia/SkiaBackingStore.cpp:
(WebCore::SkiaBackingStore::Tile::update):
* Source/WebCore/platform/graphics/skia/SkiaUtilities.cpp:
(WebCore::SkiaUtilities::paintImageRectToSurface):
* Source/WebCore/platform/graphics/skia/SkiaUtilities.h:
* 
Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedPlatformLayerBufferNativeImage.cpp:
(WebCore::CoordinatedPlatformLayerBufferNativeImage::tryEnsureBuffer):

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



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

Reply via email to