Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e5ec96108a232b73882579bceef2f928b7310914
      
https://github.com/WebKit/WebKit/commit/e5ec96108a232b73882579bceef2f928b7310914
  Author: Carlos Garcia Campos <cgar...@igalia.com>
  Date:   2023-10-25 (Wed, 25 Oct 2023)

  Changed paths:
    M Source/WebCore/PlatformGTK.cmake
    A Source/WebCore/platform/graphics/gbm/GBMVersioning.h
    M Source/WebKit/WebProcess/WebPage/gtk/AcceleratedSurfaceDMABuf.cpp
    M Source/cmake/OptionsGTK.cmake
    M Tools/Scripts/webkitpy/style/checker.py

  Log Message:
  -----------
  [GTK] Build error in Debian stable after 269634@main
https://bugs.webkit.org/show_bug.cgi?id=263634

Reviewed by Adrian Perez de Castro.

gbm_bo_get_fd_for_plane() is not present in old versions of GBM, so in
that case we need to fallback to use gbm_bo_get_handle_for_plane() +
drmPrimeHandleToFD(). This patch adds GBMVersioning.h header to define
the missing APIs and avoid more ifdefs.

* Source/WebCore/PlatformGTK.cmake:
* Source/WebCore/platform/graphics/gbm/GBMVersioning.h: Added.
(gbm_bo_create_with_modifiers2):
(gbm_bo_get_fd_for_plane2):
* Source/WebKit/WebProcess/WebPage/gtk/AcceleratedSurfaceDMABuf.cpp:
(WebKit::AcceleratedSurfaceDMABuf::RenderTargetEGLImage::create):
* Source/cmake/OptionsGTK.cmake:

Canonical link: https://commits.webkit.org/269760@main


_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to