Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(396)

Unified Diff: content/common/BUILD.gn

Issue 490233002: VaapiVideoAccelerator: make Vaapi accelerator work with ozone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Enable vaapi_h264_decoder_unittest on Ozone Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/common/gpu/media/DEPS » ('j') | content/common/gpu/media/rendering_helper.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/BUILD.gn
diff --git a/content/common/BUILD.gn b/content/common/BUILD.gn
index 0417e929c1830605516ed89d13564e2afb2dfc0a..d9b135f51ff15d6cf1a8b9f9ddd6bf0994508f6a 100644
--- a/content/common/BUILD.gn
+++ b/content/common/BUILD.gn
@@ -7,12 +7,17 @@ import("//build/config/ui.gni")
import("//content/common/common.gni")
import("//mojo/public/tools/bindings/mojom.gni")
-if (is_chromeos && use_x11 && cpu_arch != "arm") {
+if (is_chromeos && cpu_arch != "arm") {
action("libva_generate_stubs") {
extra_header = "gpu/media/va_stub_header.fragment"
script = "../../tools/generate_stubs/generate_stubs.py"
sources = [ "gpu/media/va.sigs" ]
+ if (use_x11) {
+ sources += [ "content/common/gpu/media/va_x11.sigs" ]
+ } else {
+ sources += [ "content/common/gpu/media/va_drm.sigs" ]
+ }
source_prereqs = [ extra_header ]
stubs_filename_root = "va_stubs"
@@ -228,8 +233,8 @@ source_set("common") {
}
}
- if (is_chromeos && use_x11) {
- if (cpu_arch == "arm") {
+ if (is_chromeos) {
+ if (cpu_arch == "arm" && use_x11) {
sources += [
"gpu/media/exynos_v4l2_video_device.cc",
"gpu/media/exynos_v4l2_video_device.h",
@@ -252,6 +257,8 @@ source_set("common") {
"gpu/media/va_surface.h",
"gpu/media/vaapi_h264_decoder.cc",
"gpu/media/vaapi_h264_decoder.h",
+ "gpu/media/vaapi_picture_provider.cc",
+ "gpu/media/vaapi_picture_provider.h",
"gpu/media/vaapi_video_decode_accelerator.cc",
"gpu/media/vaapi_video_decode_accelerator.h",
"gpu/media/vaapi_video_encode_accelerator.cc",
@@ -268,6 +275,17 @@ source_set("common") {
"//media",
"//third_party/libyuv",
]
+ if (use_x11) {
+ sources += [
+ "gpu/media/vaapi_picture_provider_x11.cc",
+ "gpu/media/vaapi_picture_provider_x11.h",
+ ]
+ } else {
+ sources += [
+ "gpu/media/vaapi_picture_provider_drm.cc",
+ "gpu/media/vaapi_picture_provider_drm.h",
+ ]
+ }
}
}
« no previous file with comments | « no previous file | content/common/gpu/media/DEPS » ('j') | content/common/gpu/media/rendering_helper.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698