Skip to content

Commit 520ba67

Browse files
committed
REGRESSION(302293@main): [WPE] Build broken when targeting Android
https://bugs.webkit.org/show_bug.cgi?id=301920 Reviewed by Sergio Villar Senin. * Source/WebKit/WebProcess/WebPage/glib/WebPageGLib.cpp: (WebKit::WebPage::getRenderProcessInfo): Add a missing USE(GBM) guard to avoid accessing the .modifiers field when it is not available. Canonical link: https://commits.webkit.org/302533@main
1 parent 6e0255e commit 520ba67

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

Source/WebKit/WebProcess/WebPage/glib/WebPageGLib.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,14 @@ void WebPage::getRenderProcessInfo(CompletionHandler<void(RenderProcessInfo&&)>&
293293

294294
if (info.platform != "WPE"_s) {
295295
info.supportedBufferFormats = display->bufferFormats().map([](const auto& format) -> RendererBufferFormat::Format {
296-
return { format.fourcc.value, format.modifiers };
296+
return {
297+
format.fourcc.value,
298+
#if USE(GBM)
299+
format.modifiers,
300+
#else
301+
{ },
302+
#endif
303+
};
297304
});
298305
}
299306

0 commit comments

Comments
 (0)