RESOLVED FIXED294317
[WPEPlatform] Introduce support for Android's AHardwareBuffer
https://bugs.webkit.org/show_bug.cgi?id=294317
Summary [WPEPlatform] Introduce support for Android's AHardwareBuffer
Adrian Perez
Reported 2025-06-11 04:28:45 PDT
The same way we have a WPEBufferDMABuf, we would want to have a WPEBuffer subclass to wrap Android's AHardwareBuffer. One question is what to do when building for non-Android systems. One option is to have the implementation contain stubs that error out, the other to avoid building the Android-specific code at all.
Attachments
Carlos Garcia Campos
Comment 1 2025-06-11 04:43:14 PDT
What we do for the builtin platforms, that are optional and have public API, is that and ifdef is needed to use them, see WPEConfig.h.in where we define (or not) WPE_PLATFORM_WAYLAND, WPE_PLATFORM_DRM and WPE_PLATFORM_HEADLESS. So, to use for example wpe_screen_drm_get_crtc_index() in DisplayVBlankMonitorDRM.cpp we need to add #ifdef WPE_PLATFORM_DRM. This could be something similar.
Adrian Perez
Comment 2 2025-06-11 04:48:11 PDT
Adrian Perez
Comment 3 2025-06-11 04:49:29 PDT
(In reply to Carlos Garcia Campos from comment #1) > What we do for the builtin platforms, that are optional and have public API, > is that and ifdef is needed to use them, see WPEConfig.h.in where we define > (or not) WPE_PLATFORM_WAYLAND, WPE_PLATFORM_DRM and WPE_PLATFORM_HEADLESS. > So, to use for example wpe_screen_drm_get_crtc_index() in > DisplayVBlankMonitorDRM.cpp we need to add #ifdef WPE_PLATFORM_DRM. This > could be something similar. Thanks for the pointer, I'll take a look. For now I have posted the PR as a draft and will update it when I have the needed changes applied.
EWS
Comment 4 2025-08-13 01:22:47 PDT
Committed 298619@main (fd72faeef06a): <https://commits.webkit.org/298619@main> Reviewed commits have been landed. Closing PR #46598 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.