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

Side by Side Diff: content/content_common.gypi

Issue 43283002: Enable GLX/EGL backend switching while run HW video decode with libva. (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 1 month 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
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 { 5 {
6 'dependencies': [ 6 'dependencies': [
7 '../base/base.gyp:base', 7 '../base/base.gyp:base',
8 '../components/tracing.gyp:tracing', 8 '../components/tracing.gyp:tracing',
9 '../net/net.gyp:net', 9 '../net/net.gyp:net',
10 '../skia/skia.gyp:skia', 10 '../skia/skia.gyp:skia',
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after
510 'include_dirs': [ 510 'include_dirs': [
511 '<(DEPTH)/third_party/khronos', 511 '<(DEPTH)/third_party/khronos',
512 ], 512 ],
513 'link_settings': { 513 'link_settings': {
514 'libraries': [ 514 'libraries': [
515 '-lEGL', 515 '-lEGL',
516 '-lGLESv2', 516 '-lGLESv2',
517 ], 517 ],
518 }, 518 },
519 }], 519 }],
520 ['target_arch != "arm" and chromeos == 1 and use_x11 == 1', { 520 ['target_arch != "arm" and OS!="win" and OS!="andorid" and OS!="ios" and use _x11 == 1', {
521 'variables': {
522 'use_video_glx%': 1,
523 },
524 'use_video_glx%': '<(use_video_glx)',
525 'dependencies': [
526 '../media/media.gyp:media',
527 ],
521 'sources': [ 528 'sources': [
522 'common/gpu/media/h264_dpb.cc', 529 'common/gpu/media/h264_dpb.cc',
523 'common/gpu/media/h264_dpb.h', 530 'common/gpu/media/h264_dpb.h',
524 'common/gpu/media/va_surface.h', 531 'common/gpu/media/va_surface.h',
525 'common/gpu/media/vaapi_h264_decoder.cc', 532 'common/gpu/media/vaapi_h264_decoder.cc',
526 'common/gpu/media/vaapi_h264_decoder.h', 533 'common/gpu/media/vaapi_h264_decoder.h',
527 'common/gpu/media/vaapi_video_decode_accelerator.cc', 534 'common/gpu/media/vaapi_video_decode_accelerator.cc',
528 'common/gpu/media/vaapi_video_decode_accelerator.h', 535 'common/gpu/media/vaapi_video_decode_accelerator.h',
529 'common/gpu/media/vaapi_wrapper.cc', 536 'common/gpu/media/vaapi_wrapper.cc',
530 'common/gpu/media/vaapi_wrapper.h', 537 'common/gpu/media/vaapi_wrapper.h',
531 ], 538 ],
532 'include_dirs': [ 539 'include_dirs': [
533 '<(DEPTH)/third_party/libva', 540 '<(DEPTH)/third_party/libva',
534 ], 541 ],
542 'conditions': [
543 ['use_video_glx == 1 or chromeos == 1', {
544 'defines': [
545 'VIDEO_TEXTURE_GLX_BACKEND',
546 ],
547 }],
548 ['use_video_glx == 0 and chromeos == 0', {
549 'defines': [
550 'VIDEO_TEXTURE_EGL_BACKEND',
551 ],
552 'include_dirs': [
553 '<(DEPTH)/third_party/khronos',
554 ],
555 'link_settings': {
556 'libraries': [
557 '-lEGL',
558 '-lGLESv2',
559 ],
560 },
561 }],
562 ],
535 }], 563 }],
536 ['OS=="win"', { 564 ['OS=="win"', {
537 'dependencies': [ 565 'dependencies': [
538 '../media/media.gyp:media', 566 '../media/media.gyp:media',
539 '../ui/gl/gl.gyp:gl', 567 '../ui/gl/gl.gyp:gl',
540 ], 568 ],
541 'link_settings': { 569 'link_settings': {
542 'libraries': [ 570 'libraries': [
543 '-ld3d9.lib', 571 '-ld3d9.lib',
544 '-ldxva2.lib', 572 '-ldxva2.lib',
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 '..\\third_party\\directxsdk\\files\\Redist\\<(input)', 614 '..\\third_party\\directxsdk\\files\\Redist\\<(input)',
587 '<(output)', 615 '<(output)',
588 '<(PRODUCT_DIR)', 616 '<(PRODUCT_DIR)',
589 ], 617 ],
590 'msvs_cygwin_shell': 1, 618 'msvs_cygwin_shell': 1,
591 }, 619 },
592 ] 620 ]
593 }], 621 }],
594 ], 622 ],
595 } 623 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698