Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 42598486e6ea5601655b984c536e8f9197a369e7
https://github.com/WebKit/WebKit/commit/42598486e6ea5601655b984c536e8f9197a369e7
Author: Felipe Erias <[email protected]>
Date: 2025-11-06 (Thu, 06 Nov 2025)
Changed paths:
M Source/WebCore/PlatformWPE.cmake
M Source/WebCore/SourcesWPE.txt
M Source/WebCore/platform/graphics/PlatformDisplay.h
A Source/WebCore/platform/graphics/android/PlatformDisplayAndroid.cpp
A Source/WebCore/platform/graphics/android/PlatformDisplayAndroid.h
M Source/WebCore/platform/graphics/egl/PlatformDisplayDefault.cpp
M Source/WebCore/platform/graphics/egl/PlatformDisplayDefault.h
M Source/WebKit/UIProcess/wpe/AcceleratedBackingStore.cpp
M Source/WebKit/WebProcess/WebPage/glib/WebPageGLib.cpp
M Source/WebKit/WebProcess/glib/WebProcessGLib.cpp
Log Message:
-----------
[WPE] Add an Android platform display
https://bugs.webkit.org/show_bug.cgi?id=301939
Reviewed by Carlos Garcia Campos.
Add a new PlatformDisplayAndroid that tries using EGL_PLATFORM_ANDROID_KHR,
and also enable PlatformDisplayDefault as fallback. The fallback is needed
because it is common for the corresponding EGL_KHR_platform_android extension
to not be available, and also that some devices may not provide EGL 1.5,
which is required by the extension.
Loosely based on an initial patch by Felipe Erias <[email protected]>.
* Source/WebCore/PlatformWPE.cmake:
* Source/WebCore/SourcesWPE.txt:
* Source/WebCore/platform/graphics/PlatformDisplay.h:
* Source/WebCore/platform/graphics/android/PlatformDisplayAndroid.cpp: Added.
(WebCore::PlatformDisplayAndroid::create):
(WebCore::PlatformDisplayAndroid::PlatformDisplayAndroid):
* Source/WebCore/platform/graphics/android/PlatformDisplayAndroid.h: Added.
* Source/WebCore/platform/graphics/egl/PlatformDisplayDefault.cpp: Build
for Android.
* Source/WebCore/platform/graphics/egl/PlatformDisplayDefault.h: Ditto.
* Source/WebKit/UIProcess/wpe/AcceleratedBackingStore.cpp: Add the
correct header inclusion for drm_fourcc.h on Android.
* Source/WebKit/WebProcess/WebPage/glib/WebPageGLib.cpp:
(WebKit::WebPage::getRenderProcessInfo): Handle the Android display
type, and extend an USE(GBM) guard to account for display buffer formats
not yet being exposed on Android.
* Source/WebKit/WebProcess/glib/WebProcessGLib.cpp:
(WebKit::WebProcess::initializePlatformDisplayIfNeeded const): Try using
the newly added PlatformDisplayAndroid, enable trying PlatformDisplayDefault
as last resort.
Canonical link: https://commits.webkit.org/302638@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications