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

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

Issue 2964193002: Revert of h264_decoder_unittests: Initial Change. (Closed)
Patch Set: Created 3 years, 5 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 unified diff | Download patch
« no previous file with comments | « media/BUILD.gn ('k') | media/gpu/h264_decoder_unittest.cc » ('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
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
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",
132 "fake_jpeg_decode_accelerator.cc", 131 "fake_jpeg_decode_accelerator.cc",
133 "fake_jpeg_decode_accelerator.h", 132 "fake_jpeg_decode_accelerator.h",
134 "fake_video_decode_accelerator.cc", 133 "fake_video_decode_accelerator.cc",
135 "fake_video_decode_accelerator.h", 134 "fake_video_decode_accelerator.h",
136 "gpu_video_accelerator_util.cc", 135 "gpu_video_accelerator_util.cc",
137 "gpu_video_accelerator_util.h", 136 "gpu_video_accelerator_util.h",
138 "gpu_video_decode_accelerator_factory.cc", 137 "gpu_video_decode_accelerator_factory.cc",
139 "gpu_video_decode_accelerator_factory.h", 138 "gpu_video_decode_accelerator_factory.h",
140 "gpu_video_decode_accelerator_helpers.h", 139 "gpu_video_decode_accelerator_helpers.h",
141 "gpu_video_encode_accelerator_factory.cc", 140 "gpu_video_encode_accelerator_factory.cc",
142 "gpu_video_encode_accelerator_factory.h", 141 "gpu_video_encode_accelerator_factory.h",
143 "h264_decoder.cc",
144 "h264_decoder.h",
145 "h264_dpb.cc",
146 "h264_dpb.h",
147 "shared_memory_region.cc", 142 "shared_memory_region.cc",
148 "shared_memory_region.h", 143 "shared_memory_region.h",
149 ] 144 ]
150 145
151 public_deps = [ 146 public_deps = [
152 "//base", 147 "//base",
153 "//gpu", 148 "//gpu",
154 "//media", 149 "//media",
155 "//ui/gfx/geometry", 150 "//ui/gfx/geometry",
156 ] 151 ]
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 } 235 }
241 236
242 # TODO(xhwang): This is needed for AVDA to access the CDM directly. 237 # TODO(xhwang): This is needed for AVDA to access the CDM directly.
243 # Remove this dependency after VDAs are also running as part of the mojo 238 # Remove this dependency after VDAs are also running as part of the mojo
244 # media service. See http://crbug.com/522298 239 # media service. See http://crbug.com/522298
245 if (mojo_media_host == "gpu") { 240 if (mojo_media_host == "gpu") {
246 deps += [ "//media:cdm_manager" ] 241 deps += [ "//media:cdm_manager" ]
247 } 242 }
248 } 243 }
249 244
245 if (is_chromeos || is_win) {
246 sources += [
247 "accelerated_video_decoder.h",
248 "h264_decoder.cc",
249 "h264_decoder.h",
250 "h264_dpb.cc",
251 "h264_dpb.h",
252 ]
253 }
250 if (is_chromeos) { 254 if (is_chromeos) {
251 sources += [ 255 sources += [
252 "vp8_decoder.cc", 256 "vp8_decoder.cc",
253 "vp8_decoder.h", 257 "vp8_decoder.h",
254 "vp8_picture.cc", 258 "vp8_picture.cc",
255 "vp8_picture.h", 259 "vp8_picture.h",
256 "vp9_decoder.cc", 260 "vp9_decoder.cc",
257 "vp9_decoder.h", 261 "vp9_decoder.h",
258 "vp9_picture.cc", 262 "vp9_picture.cc",
259 "vp9_picture.h", 263 "vp9_picture.h",
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 ] 558 ]
555 if (use_x11) { 559 if (use_x11) {
556 deps += [ "//ui/gfx/x" ] 560 deps += [ "//ui/gfx/x" ]
557 } 561 }
558 if (use_ozone) { 562 if (use_ozone) {
559 deps += [ "//ui/ozone" ] 563 deps += [ "//ui/ozone" ]
560 } 564 }
561 } 565 }
562 } 566 }
563 567
564 source_set("unit_tests") {
565 testonly = true
566 deps = [
567 "//base",
568 "//media/base:test_support",
569 "//media/gpu",
570 "//testing/gmock",
571 "//testing/gtest",
572 ]
573 sources = [
574 "h264_decoder_unittest.cc",
575 ]
576
577 if (is_android) {
578 deps += [
579 # The test needs the java dependencies to add the java classes for their
580 # native counterparts to the test apk.
581 ":android_video_decode_accelerator_unittests",
582 "//media/base/android:media_java",
583 "//ui/android:ui_java",
584 ]
585 }
586 }
587
588 test("video_decode_accelerator_service_unittest") { 568 test("video_decode_accelerator_service_unittest") {
589 sources = [ 569 sources = [
590 "ipc/service/gpu_jpeg_decode_accelerator_unittest.cc", 570 "ipc/service/gpu_jpeg_decode_accelerator_unittest.cc",
591 ] 571 ]
592 572
593 deps = [ 573 deps = [
594 ":gpu", 574 ":gpu",
595 "//base", 575 "//base",
596 "//base/test:run_all_unittests", 576 "//base/test:run_all_unittests",
597 "//base/test:test_support", 577 "//base/test:test_support",
598 "//gpu:test_support", 578 "//gpu:test_support",
599 "//media/gpu/ipc/common", 579 "//media/gpu/ipc/common",
600 "//media/gpu/ipc/service", 580 "//media/gpu/ipc/service",
601 "//testing/gmock", 581 "//testing/gmock",
602 "//testing/gtest", 582 "//testing/gtest",
603 "//ui/gfx:test_support", 583 "//ui/gfx:test_support",
604 "//ui/gfx/geometry", 584 "//ui/gfx/geometry",
605 ] 585 ]
606 } 586 }
OLDNEW
« no previous file with comments | « media/BUILD.gn ('k') | media/gpu/h264_decoder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698