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

Unified Diff: content/common/BUILD.gn

Issue 902773003: Revert of Clean up V4L2 codec-related flags and defines (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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/common.gni » ('j') | no next file with comments »
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 c74fa2ff0ca3fb9118a444575752523a32db33bb..c80a5d5ed32f563690d00a8158e1abdc7e100098 100644
--- a/content/common/BUILD.gn
+++ b/content/common/BUILD.gn
@@ -25,42 +25,6 @@
sources += [ "gpu/media/va_drm.sigs" ]
}
stubs_filename_root = "va_stubs"
-
- outputs = [
- "$target_gen_dir/gpu/media/$stubs_filename_root.cc",
- "$target_gen_dir/gpu/media/$stubs_filename_root.h",
- ]
- args = [
- "-i",
- rebase_path("$target_gen_dir/gpu/media", root_build_dir),
- "-o",
- rebase_path("$target_gen_dir/gpu/media", root_build_dir),
- "-t",
- "posix_stubs",
- "-e",
- rebase_path(extra_header, root_build_dir),
- "-s",
- stubs_filename_root,
- "-p",
- "content/common/gpu/media",
- ]
-
- args += rebase_path(sources, root_build_dir)
- }
-}
-
-if (is_chromeos && use_v4lplugin) {
- action("libv4l2_generate_stubs") {
- extra_header = "gpu/media/v4l2_stub_header.fragment"
-
- script = "../../tools/generate_stubs/generate_stubs.py"
- sources = [
- "gpu/media/v4l2.sig",
- ]
- inputs = [
- extra_header,
- ]
- stubs_filename_root = "v4l2_stubs"
outputs = [
"$target_gen_dir/gpu/media/$stubs_filename_root.cc",
@@ -316,46 +280,32 @@
}
if (is_chromeos) {
- if (use_v4lplugin) {
- defines += [ "USE_LIBV4L2" ]
- sources += get_target_outputs(":libv4l2_generate_stubs")
- deps += [ ":libv4l2_generate_stubs" ]
- }
if (use_v4l2_codec) {
defines += [ "USE_V4L2_CODEC" ]
+ }
+ if (cpu_arch == "arm" || (use_ozone && use_v4l2_codec)) {
sources += [
- "gpu/media/accelerated_video_decoder.h",
"gpu/media/generic_v4l2_video_device.cc",
"gpu/media/generic_v4l2_video_device.h",
- "gpu/media/h264_decoder.cc",
- "gpu/media/h264_decoder.h",
- "gpu/media/h264_dpb.cc",
- "gpu/media/h264_dpb.h",
"gpu/media/v4l2_image_processor.cc",
"gpu/media/v4l2_image_processor.h",
- "gpu/media/v4l2_slice_video_decode_accelerator.cc",
- "gpu/media/v4l2_slice_video_decode_accelerator.h",
"gpu/media/v4l2_video_decode_accelerator.cc",
"gpu/media/v4l2_video_decode_accelerator.h",
"gpu/media/v4l2_video_device.cc",
"gpu/media/v4l2_video_device.h",
"gpu/media/v4l2_video_encode_accelerator.cc",
"gpu/media/v4l2_video_encode_accelerator.h",
- "gpu/media/vp8_decoder.cc",
- "gpu/media/vp8_decoder.h",
- "gpu/media/vp8_picture.cc",
- "gpu/media/vp8_picture.h",
]
libs = [
"EGL",
"GLESv2",
]
- }
- if (cpu_arch == "arm") {
- sources += [
- "gpu/media/tegra_v4l2_video_device.cc",
- "gpu/media/tegra_v4l2_video_device.h",
- ]
+ if (cpu_arch == "arm") {
+ sources += [
+ "gpu/media/tegra_v4l2_video_device.cc",
+ "gpu/media/tegra_v4l2_video_device.h",
+ ]
+ }
}
if (cpu_arch != "arm") {
sources += [
« no previous file with comments | « no previous file | content/common/common.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698