OLD | NEW |
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 |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 | 121 |
122 if (is_mac) { | 122 if (is_mac) { |
123 # On Mac, content/common reaches into here to do some pre-sandbox | 123 # On Mac, content/common reaches into here to do some pre-sandbox |
124 # initialization. | 124 # initialization. |
125 visibility += [ "//content/common" ] | 125 visibility += [ "//content/common" ] |
126 } | 126 } |
127 | 127 |
128 defines = [ "MEDIA_GPU_IMPLEMENTATION" ] | 128 defines = [ "MEDIA_GPU_IMPLEMENTATION" ] |
129 | 129 |
130 sources = [ | 130 sources = [ |
| 131 "accelerated_video_decoder.h", |
131 "fake_video_decode_accelerator.cc", | 132 "fake_video_decode_accelerator.cc", |
132 "fake_video_decode_accelerator.h", | 133 "fake_video_decode_accelerator.h", |
133 "gpu_video_accelerator_util.cc", | 134 "gpu_video_accelerator_util.cc", |
134 "gpu_video_accelerator_util.h", | 135 "gpu_video_accelerator_util.h", |
135 "gpu_video_decode_accelerator_factory.cc", | 136 "gpu_video_decode_accelerator_factory.cc", |
136 "gpu_video_decode_accelerator_factory.h", | 137 "gpu_video_decode_accelerator_factory.h", |
137 "gpu_video_decode_accelerator_helpers.h", | 138 "gpu_video_decode_accelerator_helpers.h", |
| 139 "h264_decoder.cc", |
| 140 "h264_decoder.h", |
| 141 "h264_dpb.cc", |
| 142 "h264_dpb.h", |
138 "shared_memory_region.cc", | 143 "shared_memory_region.cc", |
139 "shared_memory_region.h", | 144 "shared_memory_region.h", |
140 ] | 145 ] |
141 | 146 |
142 public_deps = [ | 147 public_deps = [ |
143 "//base", | 148 "//base", |
144 "//gpu", | 149 "//gpu", |
145 "//media", | 150 "//media", |
146 "//ui/gfx/geometry", | 151 "//ui/gfx/geometry", |
147 ] | 152 ] |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 } | 216 } |
212 | 217 |
213 # TODO(xhwang): This is needed for AVDA to access the CDM directly. | 218 # TODO(xhwang): This is needed for AVDA to access the CDM directly. |
214 # Remove this dependency after VDAs are also running as part of the mojo | 219 # Remove this dependency after VDAs are also running as part of the mojo |
215 # media service. See http://crbug.com/522298 | 220 # media service. See http://crbug.com/522298 |
216 if (mojo_media_host == "gpu") { | 221 if (mojo_media_host == "gpu") { |
217 deps += [ "//media/mojo/services" ] | 222 deps += [ "//media/mojo/services" ] |
218 } | 223 } |
219 } | 224 } |
220 | 225 |
221 if (is_chromeos || is_win) { | |
222 sources += [ | |
223 "accelerated_video_decoder.h", | |
224 "h264_decoder.cc", | |
225 "h264_decoder.h", | |
226 "h264_dpb.cc", | |
227 "h264_dpb.h", | |
228 ] | |
229 } | |
230 if (is_chromeos) { | 226 if (is_chromeos) { |
231 sources += [ | 227 sources += [ |
232 "vp8_decoder.cc", | 228 "vp8_decoder.cc", |
233 "vp8_decoder.h", | 229 "vp8_decoder.h", |
234 "vp8_picture.cc", | 230 "vp8_picture.cc", |
235 "vp8_picture.h", | 231 "vp8_picture.h", |
236 "vp9_decoder.cc", | 232 "vp9_decoder.cc", |
237 "vp9_decoder.h", | 233 "vp9_decoder.h", |
238 "vp9_picture.cc", | 234 "vp9_picture.cc", |
239 "vp9_picture.h", | 235 "vp9_picture.h", |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
516 ] | 512 ] |
517 if (use_x11) { | 513 if (use_x11) { |
518 deps += [ "//ui/gfx/x" ] | 514 deps += [ "//ui/gfx/x" ] |
519 } | 515 } |
520 if (use_ozone) { | 516 if (use_ozone) { |
521 deps += [ "//ui/ozone" ] | 517 deps += [ "//ui/ozone" ] |
522 } | 518 } |
523 } | 519 } |
524 } | 520 } |
525 | 521 |
| 522 source_set("unit_tests") { |
| 523 testonly = true |
| 524 deps = [ |
| 525 "//base", |
| 526 "//media/base:test_support", |
| 527 "//media/gpu", |
| 528 "//testing/gtest", |
| 529 ] |
| 530 sources = [ |
| 531 "h264_decoder_unittest.cc", |
| 532 ] |
| 533 |
| 534 if (is_android) { |
| 535 deps += [ |
| 536 # The test needs the java dependencies to add the java classes for their |
| 537 # native counterparts to the test apk. |
| 538 ":android_video_decode_accelerator_unittests", |
| 539 "//media/base/android:media_java", |
| 540 "//ui/android:ui_java", |
| 541 ] |
| 542 } |
| 543 } |
| 544 |
526 test("video_decode_accelerator_service_unittest") { | 545 test("video_decode_accelerator_service_unittest") { |
527 sources = [ | 546 sources = [ |
528 "ipc/service/gpu_jpeg_decode_accelerator_unittest.cc", | 547 "ipc/service/gpu_jpeg_decode_accelerator_unittest.cc", |
529 ] | 548 ] |
530 | 549 |
531 deps = [ | 550 deps = [ |
532 ":gpu", | 551 ":gpu", |
533 "//base", | 552 "//base", |
534 "//base/test:run_all_unittests", | 553 "//base/test:run_all_unittests", |
535 "//base/test:test_support", | 554 "//base/test:test_support", |
536 "//gpu:test_support", | 555 "//gpu:test_support", |
537 "//media/gpu/ipc/common", | 556 "//media/gpu/ipc/common", |
538 "//media/gpu/ipc/service", | 557 "//media/gpu/ipc/service", |
539 "//testing/gmock", | 558 "//testing/gmock", |
540 "//testing/gtest", | 559 "//testing/gtest", |
541 "//ui/gfx:test_support", | 560 "//ui/gfx:test_support", |
542 "//ui/gfx/geometry", | 561 "//ui/gfx/geometry", |
543 ] | 562 ] |
544 } | 563 } |
OLD | NEW |