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 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 } | 330 } |
331 } | 331 } |
332 } | 332 } |
333 | 333 |
334 if (is_win) { | 334 if (is_win) { |
335 sources += [ | 335 sources += [ |
336 "dxva_picture_buffer_win.cc", | 336 "dxva_picture_buffer_win.cc", |
337 "dxva_picture_buffer_win.h", | 337 "dxva_picture_buffer_win.h", |
338 "dxva_video_decode_accelerator_win.cc", | 338 "dxva_video_decode_accelerator_win.cc", |
339 "dxva_video_decode_accelerator_win.h", | 339 "dxva_video_decode_accelerator_win.h", |
| 340 "media_foundation_video_encode_accelerator_win.cc", |
| 341 "media_foundation_video_encode_accelerator_win.h", |
340 ] | 342 ] |
341 configs += [ | 343 configs += [ |
342 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 344 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
343 "//build/config/compiler:no_size_t_to_int_warning", | 345 "//build/config/compiler:no_size_t_to_int_warning", |
344 "//third_party/khronos:khronos_headers", | 346 "//third_party/khronos:khronos_headers", |
345 ] | 347 ] |
346 public_deps += [ "//media/base/win" ] | 348 public_deps += [ "//media/base/win" ] |
347 deps += [ "//third_party/angle:includes" ] | 349 deps += [ |
| 350 "//third_party/angle:includes", |
| 351 "//third_party/libyuv", |
| 352 ] |
348 libs += [ | 353 libs += [ |
349 "d3d9.lib", | 354 "d3d9.lib", |
350 "d3d11.lib", | 355 "d3d11.lib", |
351 "dxva2.lib", | 356 "dxva2.lib", |
352 "strmiids.lib", | 357 "strmiids.lib", |
353 "mf.lib", | 358 "mf.lib", |
354 "mfplat.lib", | 359 "mfplat.lib", |
355 "mfuuid.lib", | 360 "mfuuid.lib", |
356 ] | 361 ] |
357 ldflags += [ | 362 ldflags += [ |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 ] | 432 ] |
428 } | 433 } |
429 | 434 |
430 if (use_x11) { | 435 if (use_x11) { |
431 configs += [ "//build/config/linux:x11" ] | 436 configs += [ "//build/config/linux:x11" ] |
432 deps += [ "//ui/gfx/x" ] | 437 deps += [ "//ui/gfx/x" ] |
433 } | 438 } |
434 } | 439 } |
435 } | 440 } |
436 | 441 |
437 if (is_chromeos || is_mac) { | 442 if (is_chromeos || is_mac || is_win) { |
438 test("video_encode_accelerator_unittest") { | 443 test("video_encode_accelerator_unittest") { |
439 deps = [ | 444 deps = [ |
440 "//base", | 445 "//base", |
441 "//media", | 446 "//media", |
442 "//media/base:test_support", | 447 "//media/base:test_support", |
443 "//media/gpu", | 448 "//media/gpu", |
444 "//testing/gtest", | 449 "//testing/gtest", |
445 "//ui/base", | 450 "//ui/base", |
446 "//ui/gfx", | 451 "//ui/gfx", |
447 "//ui/gfx:test_support", | 452 "//ui/gfx:test_support", |
(...skipping 11 matching lines...) Expand all Loading... |
459 "video_encode_accelerator_unittest.cc", | 464 "video_encode_accelerator_unittest.cc", |
460 ] | 465 ] |
461 if (use_x11) { | 466 if (use_x11) { |
462 deps += [ "//ui/gfx/x" ] | 467 deps += [ "//ui/gfx/x" ] |
463 } | 468 } |
464 if (use_ozone) { | 469 if (use_ozone) { |
465 deps += [ "//ui/ozone" ] | 470 deps += [ "//ui/ozone" ] |
466 } | 471 } |
467 } | 472 } |
468 } | 473 } |
OLD | NEW |