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

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: Rebase on ToT Created 6 years 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/vaapi_picture.cc » ('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 a1ec31f43a6f9e84c6aff2d5459ad3f3e961faf6..251ade1e228bb3a428d11dd97adaeb5952489c2e 100644
--- a/content/common/BUILD.gn
+++ b/content/common/BUILD.gn
@@ -7,7 +7,7 @@ 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"
@@ -18,6 +18,12 @@ if (is_chromeos && use_x11 && cpu_arch != "arm") {
inputs = [
extra_header,
]
+ if (use_x11) {
+ sources += [ "content/common/gpu/media/va_x11.sigs" ]
+ }
+ if (use_ozone) {
+ sources += [ "content/common/gpu/media/va_drm.sigs" ]
+ }
stubs_filename_root = "va_stubs"
outputs = [
@@ -273,8 +279,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",
@@ -300,6 +306,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.cc",
+ "gpu/media/vaapi_picture.h",
"gpu/media/vaapi_video_decode_accelerator.cc",
"gpu/media/vaapi_video_decode_accelerator.h",
"gpu/media/vaapi_video_encode_accelerator.cc",
@@ -316,6 +324,17 @@ source_set("common") {
"//media",
"//third_party/libyuv",
]
+ if (use_x11) {
+ sources += [
+ "gpu/media/vaapi_tfp_picture.cc",
+ "gpu/media/vaapi_tfp_picture.h",
+ ]
+ } else {
+ sources += [
+ "gpu/media/vaapi_drm_picture.cc",
+ "gpu/media/vaapi_drm_picture.h",
+ ]
+ }
}
}
« no previous file with comments | « no previous file | content/common/gpu/media/DEPS » ('j') | content/common/gpu/media/vaapi_picture.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698