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

Side by Side Diff: media/gpu/BUILD.gn

Issue 2552883003: media: Pare MCVD down to a minimal media::VideoDecoder (Closed)
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « media/base/test_helpers.cc ('k') | media/gpu/android/media_codec_video_decoder.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/features.gni") 5 import("//build/config/features.gni")
6 import("//build/config/ui.gni") 6 import("//build/config/ui.gni")
7 import("//media/gpu/args.gni") 7 import("//media/gpu/args.gni")
8 import("//media/media_options.gni") 8 import("//media/media_options.gni")
9 import("//testing/test.gni") 9 import("//testing/test.gni")
10 10
11 declare_args() {
12 # A temporary arg for building MCVD while it's being implemented.
13 # See http://crbug.com/660942
14 enable_media_codec_video_decoder = false
15 }
16
11 if (is_mac) { 17 if (is_mac) {
12 import("//build/config/mac/mac_sdk.gni") 18 import("//build/config/mac/mac_sdk.gni")
13 } 19 }
14 20
15 if (is_chromeos && current_cpu != "arm") { 21 if (is_chromeos && current_cpu != "arm") {
16 action("libva_generate_stubs") { 22 action("libva_generate_stubs") {
17 extra_header = "va_stub_header.fragment" 23 extra_header = "va_stub_header.fragment"
18 24
19 script = "../../tools/generate_stubs/generate_stubs.py" 25 script = "../../tools/generate_stubs/generate_stubs.py"
20 sources = [ 26 sources = [
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 ] 189 ]
184 190
185 if (enable_webrtc) { 191 if (enable_webrtc) {
186 deps += [ "//third_party/libyuv" ] 192 deps += [ "//third_party/libyuv" ]
187 sources += [ 193 sources += [
188 "android_video_encode_accelerator.cc", 194 "android_video_encode_accelerator.cc",
189 "android_video_encode_accelerator.h", 195 "android_video_encode_accelerator.h",
190 ] 196 ]
191 } 197 }
192 198
199 if (enable_media_codec_video_decoder) {
200 sources += [
201 "android/media_codec_video_decoder.cc",
202 "android/media_codec_video_decoder.h",
203 ]
204 }
205
193 # TODO(xhwang): This is needed for AVDA to access the CDM directly. 206 # TODO(xhwang): This is needed for AVDA to access the CDM directly.
194 # Remove this dependency after VDAs are also running as part of the mojo 207 # Remove this dependency after VDAs are also running as part of the mojo
195 # media service. See http://crbug.com/522298 208 # media service. See http://crbug.com/522298
196 if (mojo_media_host == "gpu") { 209 if (mojo_media_host == "gpu") {
197 deps += [ "//media/mojo/services" ] 210 deps += [ "//media/mojo/services" ]
198 } 211 }
199 } 212 }
200 213
201 if (is_chromeos || is_win) { 214 if (is_chromeos || is_win) {
202 sources += [ 215 sources += [
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 } 421 }
409 } 422 }
410 423
411 source_set("android_video_decode_accelerator_unittests") { 424 source_set("android_video_decode_accelerator_unittests") {
412 if (is_android) { 425 if (is_android) {
413 testonly = true 426 testonly = true
414 sources = [ 427 sources = [
415 "android_video_decode_accelerator_unittest.cc", 428 "android_video_decode_accelerator_unittest.cc",
416 "avda_codec_allocator_unittest.cc", 429 "avda_codec_allocator_unittest.cc",
417 ] 430 ]
431 if (enable_media_codec_video_decoder) {
432 sources += [ "android/media_codec_video_decoder_unittest.cc" ]
433 }
418 deps = [ 434 deps = [
419 ":gpu", 435 ":gpu",
420 "//base/test:test_support", 436 "//base/test:test_support",
421 "//gpu:test_support", 437 "//gpu:test_support",
422 "//media/base/android", 438 "//media/base/android",
423 "//testing/gmock", 439 "//testing/gmock",
424 "//testing/gtest", 440 "//testing/gtest",
425 ] 441 ]
426 } 442 }
427 } 443 }
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 "video_accelerator_unittest_helpers.h", 501 "video_accelerator_unittest_helpers.h",
486 ] 502 ]
487 if (use_x11) { 503 if (use_x11) {
488 deps += [ "//ui/gfx/x" ] 504 deps += [ "//ui/gfx/x" ]
489 } 505 }
490 if (use_ozone) { 506 if (use_ozone) {
491 deps += [ "//ui/ozone" ] 507 deps += [ "//ui/ozone" ]
492 } 508 }
493 } 509 }
494 } 510 }
OLDNEW
« no previous file with comments | « media/base/test_helpers.cc ('k') | media/gpu/android/media_codec_video_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698