diff --git a/media/gpu/vaapi/BUILD.gn b/media/gpu/vaapi/BUILD.gn index a6e7caedfa2b0..77a5df2660156 100644 --- a/media/gpu/vaapi/BUILD.gn +++ b/media/gpu/vaapi/BUILD.gn @@ -94,12 +94,12 @@ source_set("vaapi") { ] } - if (ozone_platform_gbm || use_egl) { + if (ozone_platform_wayland || ozone_platform_gbm || use_egl) { sources += [ "vaapi_picture_native_pixmap.cc", "vaapi_picture_native_pixmap.h", ] - if (ozone_platform_gbm) { + if (ozone_platform_gbm || ozone_platform_wayland) { sources += [ "vaapi_picture_native_pixmap_ozone.cc", "vaapi_picture_native_pixmap_ozone.h",