Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: fd72faeef06a1b166d79872ae8d5c96182996c69
https://github.com/WebKit/WebKit/commit/fd72faeef06a1b166d79872ae8d5c96182996c69
Author: Adrian Perez de Castro <[email protected]>
Date: 2025-08-13 (Wed, 13 Aug 2025)
Changed paths:
M Source/WebKit/Shared/glib/RendererBufferFormat.h
M Source/WebKit/WPEPlatform/CMakeLists.txt
A Source/WebKit/WPEPlatform/wpe/WPEBufferAndroid.cpp
A Source/WebKit/WPEPlatform/wpe/WPEBufferAndroid.h
M Source/WebKit/WPEPlatform/wpe/WPEConfig.h.in
M Source/WebKit/WPEPlatform/wpe/wpe-platform.h
M Source/cmake/OptionsWPE.cmake
Log Message:
-----------
[WPEPlatform] Introduce support for Android's AHardwareBuffer
https://bugs.webkit.org/show_bug.cgi?id=294317
Reviewed by Carlos Garcia Campos.
Introduce a new WPEBufferAndroid subclass of WPEBuffer that wraps an
AHardwareBuffer instance. Similarly to WPEBufferDMABuf, it supports
setting rendering and release fences (as file descriptors). The
WPEBuffer.import_to_pixels virtual method is left unimplemented for
now, but it should be possible to provide the operation for buffers
created with AHARDWAREBUFFER_USAGE_CPU_READ_{RARELY,OFTEN} in the
future.
* Source/WebKit/Shared/glib/RendererBufferFormat.h:
* Source/WebKit/WPEPlatform/CMakeLists.txt:
* Source/WebKit/WPEPlatform/wpe/WPEBufferAndroid.cpp: Added.
(createImageEGL15):
(createImageKHRImageBase):
(wpeBufferAndroidDisposeEGLImageIfNeeded):
(wpeBufferAndroidDispose):
(wpeBufferAndroidImportToEGLImage):
(wpe_buffer_android_class_init):
(wpe_buffer_android_new):
(wpe_buffer_android_get_hardware_buffer):
(wpe_buffer_android_get_format):
* Source/WebKit/WPEPlatform/wpe/WPEBufferAndroid.h: Copied from
Source/WebKit/WPEPlatform/wpe/WPEConfig.h.in.
* Source/WebKit/WPEPlatform/wpe/WPEConfig.h.in:
* Source/WebKit/WPEPlatform/wpe/wpe-platform.h:
* Source/cmake/OptionsWPE.cmake:
Canonical link: https://commits.webkit.org/298619@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes