[webkit-changes] [WebKit/WebKit] e5ec96: [GTK] Build error in Debian stable after 269634 at main

Carlos Garcia Campos noreply at github.com
Wed Oct 25 07:35:28 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e5ec96108a232b73882579bceef2f928b7310914
      https://github.com/WebKit/WebKit/commit/e5ec96108a232b73882579bceef2f928b7310914
  Author: Carlos Garcia Campos <cgarcia at 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 at 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




More information about the webkit-changes mailing list