Skip to content

Commit

Permalink
Cherry-pick 276537@main (f7de50f). https://bugs.webkit.org/show_bug.c…
Browse files Browse the repository at this point in the history
…gi?id=270979

    [WPE] Build broken when building with libdrm disabled
    https://bugs.webkit.org/show_bug.cgi?id=270979

    Reviewed by Carlos Garcia Campos.

    Use GBM resources only if USE(GBM) is enabled.

    * Source/WebCore/platform/graphics/PlatformDisplay.cpp:
    (WebCore::PlatformDisplay::createPlatformDisplay):

    Canonical link: https://commits.webkit.org/276537@main
  • Loading branch information
magomez authored and aperezdc committed Mar 22, 2024
1 parent a9911b2 commit c4f41a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/WebCore/platform/graphics/PlatformDisplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,12 @@ std::unique_ptr<PlatformDisplay> PlatformDisplay::createPlatformDisplay()

#if PLATFORM(WPE)
if (s_useDMABufForRendering) {
#if USE(GBM)
if (GBMDevice::singleton().isInitialized()) {
if (auto* device = GBMDevice::singleton().device())
return PlatformDisplayGBM::create(device);
}
#endif
return PlatformDisplaySurfaceless::create();
}
#endif
Expand Down

0 comments on commit c4f41a2

Please sign in to comment.