| 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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 } | 231 } |
| 232 | 232 |
| 233 # TODO(xhwang): This is needed for AVDA to access the CDM directly. | 233 # TODO(xhwang): This is needed for AVDA to access the CDM directly. |
| 234 # Remove this dependency after VDAs are also running as part of the mojo | 234 # Remove this dependency after VDAs are also running as part of the mojo |
| 235 # media service. See http://crbug.com/522298 | 235 # media service. See http://crbug.com/522298 |
| 236 if (mojo_media_host == "gpu") { | 236 if (mojo_media_host == "gpu") { |
| 237 deps += [ "//media/mojo/services" ] | 237 deps += [ "//media/mojo/services" ] |
| 238 } | 238 } |
| 239 } | 239 } |
| 240 | 240 |
| 241 if (is_chromeos) { | 241 if (is_chromeos || is_win) { |
| 242 sources += [ | 242 sources += [ |
| 243 "accelerated_video_decoder.h", | 243 "accelerated_video_decoder.h", |
| 244 "h264_decoder.cc", | 244 "h264_decoder.cc", |
| 245 "h264_decoder.h", | 245 "h264_decoder.h", |
| 246 "h264_dpb.cc", | 246 "h264_dpb.cc", |
| 247 "h264_dpb.h", | 247 "h264_dpb.h", |
| 248 ] |
| 249 } |
| 250 if (is_chromeos) { |
| 251 sources += [ |
| 248 "vp8_decoder.cc", | 252 "vp8_decoder.cc", |
| 249 "vp8_decoder.h", | 253 "vp8_decoder.h", |
| 250 "vp8_picture.cc", | 254 "vp8_picture.cc", |
| 251 "vp8_picture.h", | 255 "vp8_picture.h", |
| 252 "vp9_decoder.cc", | 256 "vp9_decoder.cc", |
| 253 "vp9_decoder.h", | 257 "vp9_decoder.h", |
| 254 "vp9_picture.cc", | 258 "vp9_picture.cc", |
| 255 "vp9_picture.h", | 259 "vp9_picture.h", |
| 256 ] | 260 ] |
| 257 if (use_v4lplugin) { | 261 if (use_v4lplugin) { |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 sources += [ | 329 sources += [ |
| 326 "vaapi_drm_picture.cc", | 330 "vaapi_drm_picture.cc", |
| 327 "vaapi_drm_picture.h", | 331 "vaapi_drm_picture.h", |
| 328 ] | 332 ] |
| 329 } | 333 } |
| 330 } | 334 } |
| 331 } | 335 } |
| 332 | 336 |
| 333 if (is_win) { | 337 if (is_win) { |
| 334 sources += [ | 338 sources += [ |
| 339 "d3d11_h264_accelerator.cc", |
| 340 "d3d11_h264_accelerator.h", |
| 341 "d3d11_video_decode_accelerator_win.cc", |
| 342 "d3d11_video_decode_accelerator_win.h", |
| 335 "dxva_picture_buffer_win.cc", | 343 "dxva_picture_buffer_win.cc", |
| 336 "dxva_picture_buffer_win.h", | 344 "dxva_picture_buffer_win.h", |
| 337 "dxva_video_decode_accelerator_win.cc", | 345 "dxva_video_decode_accelerator_win.cc", |
| 338 "dxva_video_decode_accelerator_win.h", | 346 "dxva_video_decode_accelerator_win.h", |
| 339 "media_foundation_video_encode_accelerator_win.cc", | 347 "media_foundation_video_encode_accelerator_win.cc", |
| 340 "media_foundation_video_encode_accelerator_win.h", | 348 "media_foundation_video_encode_accelerator_win.h", |
| 341 ] | 349 ] |
| 342 configs += [ | 350 configs += [ |
| 343 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 351 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 344 "//build/config/compiler:no_size_t_to_int_warning", | 352 "//build/config/compiler:no_size_t_to_int_warning", |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 515 "video_accelerator_unittest_helpers.h", | 523 "video_accelerator_unittest_helpers.h", |
| 516 ] | 524 ] |
| 517 if (use_x11) { | 525 if (use_x11) { |
| 518 deps += [ "//ui/gfx/x" ] | 526 deps += [ "//ui/gfx/x" ] |
| 519 } | 527 } |
| 520 if (use_ozone) { | 528 if (use_ozone) { |
| 521 deps += [ "//ui/ozone" ] | 529 deps += [ "//ui/ozone" ] |
| 522 } | 530 } |
| 523 } | 531 } |
| 524 } | 532 } |
| OLD | NEW |