fix-build-break-with-system-libdrm.patch 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. From 5b287e0be8d8d8475ec6ef81b16eaa61e19db078 Mon Sep 17 00:00:00 2001
  2. From: "Steinar H. Gunderson" <sesse@chromium.org>
  3. Date: Tue, 25 Jan 2022 19:14:53 +0000
  4. Subject: [PATCH] Fix build break with system libdrm.
  5. This patch is submitted on behalf of Andres Salomon
  6. <dilinger@queued.net> (on Cc). Also adding him to src/AUTHORS
  7. per policy, as he has signed the CLA.
  8. Original patch:
  9. https://salsa.debian.org/dilinger/chromium/-/commit/2333c2fb985ac1ef3d7331776a7833d965c63302
  10. Change-Id: I18bd60e2e80f2b9181e74ee7972c3f457ab33b10
  11. Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3401704
  12. Reviewed-by: Andres Calderon Jaramillo <andrescj@chromium.org>
  13. Commit-Queue: Steinar H Gunderson <sesse@chromium.org>
  14. Auto-Submit: Steinar H Gunderson <sesse@chromium.org>
  15. Cr-Commit-Position: refs/heads/main@{#963119}
  16. ---
  17. AUTHORS | 1 +
  18. media/gpu/chromeos/BUILD.gn | 1 +
  19. media/gpu/chromeos/video_decoder_pipeline.cc | 2 +-
  20. 3 files changed, 3 insertions(+), 1 deletion(-)
  21. diff --git a/AUTHORS b/AUTHORS
  22. index 0eba3de5065..50edd3f6b38 100644
  23. --- a/AUTHORS
  24. +++ b/AUTHORS
  25. @@ -93,6 +93,7 @@ Andreas Papacharalampous <andreas@apap04.com>
  26. Andrei Borza <andrei.borza@gmail.com>
  27. Andrei Parvu <andrei.prv@gmail.com>
  28. Andrei Parvu <parvu@adobe.com>
  29. +Andres Salomon <dilinger@queued.net>
  30. Andreu Botella <andreu@andreubotella.com>
  31. Andrew Boyarshin <andrew.boyarshin@gmail.com>
  32. Andrew Brampton <me@bramp.net>
  33. diff --git a/media/gpu/chromeos/BUILD.gn b/media/gpu/chromeos/BUILD.gn
  34. index 7cb4c3ea39a..6fe21c15ecc 100644
  35. --- a/media/gpu/chromeos/BUILD.gn
  36. +++ b/media/gpu/chromeos/BUILD.gn
  37. @@ -25,6 +25,7 @@ source_set("chromeos") {
  38. deps = [
  39. "//base",
  40. + "//build/config/linux/libdrm",
  41. "//media",
  42. "//media/gpu:buildflags",
  43. "//media/gpu:command_buffer_helper",
  44. diff --git a/media/gpu/chromeos/video_decoder_pipeline.cc b/media/gpu/chromeos/video_decoder_pipeline.cc
  45. index d2f154ea0d8..416b9434a8d 100644
  46. --- a/media/gpu/chromeos/video_decoder_pipeline.cc
  47. +++ b/media/gpu/chromeos/video_decoder_pipeline.cc
  48. @@ -28,8 +28,8 @@
  49. #include "third_party/abseil-cpp/absl/types/optional.h"
  50. #if BUILDFLAG(USE_VAAPI)
  51. +#include <drm_fourcc.h>
  52. #include "media/gpu/vaapi/vaapi_video_decoder.h"
  53. -#include "third_party/libdrm/src/include/drm/drm_fourcc.h"
  54. #elif BUILDFLAG(USE_V4L2_CODEC)
  55. #include "media/gpu/v4l2/v4l2_video_decoder.h"
  56. #else