Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 87cb5697e63503e5334cb324ebeb333cc2af006c
https://github.com/WebKit/WebKit/commit/87cb5697e63503e5334cb324ebeb333cc2af006c
Author: Carlos Garcia Campos <[email protected]>
Date: 2026-09-03 (Thu, 03 Sep 2026)
Changed paths:
M Source/WebKit/UIProcess/gtk/AcceleratedBackingStore.cpp
M
Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/AcceleratedSurface.cpp
M Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/AcceleratedSurface.h
Log Message:
-----------
[GTK3] Skia compositor: contents are y-flipped when using SHM or GBM mapped
buffers
https://bugs.webkit.org/show_bug.cgi?id=323313
Reviewed by Adrian Perez de Castro.
This is because SkSurface::readPixels already takes into account the
surface origin to return the pixels y-flipped and then in the UI process
we end up flipping again. It's easier and more efficient to never y-flip
for SHM buffer and then only flip in the UI process for GBM mapped
buffers.
* Source/WebKit/UIProcess/gtk/AcceleratedBackingStore.cpp:
(WebKit::AcceleratedBackingStore::Buffer::paint const):
* Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/AcceleratedSurface.cpp:
(WebKit::AcceleratedSurface::shouldPaintMirrored const):
* Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/AcceleratedSurface.h:
Canonical link: https://commits.webkit.org/320422@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications