Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 648c42f0e4426f27a16c3ee7f74466c1c0fcda34
https://github.com/WebKit/WebKit/commit/648c42f0e4426f27a16c3ee7f74466c1c0fcda34
Author: Yury Semikhatsky <[email protected]>
Date: 2026-06-09 (Tue, 09 Jun 2026)
Changed paths:
M Source/WebKit/UIProcess/gtk/AcceleratedBackingStore.cpp
Log Message:
-----------
[GTK] Implement BufferGBM::asNativeImageForTesting
https://bugs.webkit.org/show_bug.cgi?id=316608
Reviewed by Carlos Garcia Campos.
AcceleratedBackingStore::BufferGBM::asNativeImageForTesting() returned null,
unlike the other buffer types (BufferDMABuf, BufferEGLImage, BufferSHM). As a
result the backing-store snapshot used by the test runner
(AcceleratedBackingStore::bufferAsNativeImageForTesting, via
webkitWebViewBaseSnapshotForTesting) could not read back GBM-backed accelerated
content and fell back to a widget snapshot.
Implement it consistently with the other buffer types: download the GdkTexture
on GTK 4.16+, and copy the mapped cairo surface otherwise.
* Source/WebKit/UIProcess/gtk/AcceleratedBackingStore.cpp:
(WebKit::AcceleratedBackingStore::BufferGBM::asNativeImageForTesting const):
Canonical link: https://commits.webkit.org/314796@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications