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

Unified 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: Refined based on Fischman's comments. Created 7 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/gpu/media/vaapi_video_decode_accelerator.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/content_common.gypi
diff --git a/content/content_common.gypi b/content/content_common.gypi
index a021c9418141ec96eaafc707623df4cd1a824ff8..473873829d28cbc028c6db73f3db63c01c2e4e37 100644
--- a/content/content_common.gypi
+++ b/content/content_common.gypi
@@ -517,6 +517,13 @@
},
}],
['target_arch != "arm" and chromeos == 1 and use_x11 == 1', {
+ 'dependencies': [
+ '../media/media.gyp:media',
+ ],
+ 'variables': {
+ 'vavda_vagl_egl%': 0,
+ },
+ 'vavda_vagl_egl%': '<(vavda_vagl_egl)',
Ami GONE FROM CHROMIUM 2013/10/30 20:08:05 Is the indirection really necessary? (I think it
'sources': [
'common/gpu/media/h264_dpb.cc',
'common/gpu/media/h264_dpb.h',
@@ -531,6 +538,22 @@
'include_dirs': [
'<(DEPTH)/third_party/libva',
],
+ 'conditions': [
+ ['vavda_vagl_egl == 1', {
+ 'defines': [
+ 'VAVDA_VATEXTURE_EGL_BACKEND',
+ ],
+ 'include_dirs': [
+ '<(DEPTH)/third_party/khronos',
+ ],
+ 'link_settings': {
+ 'libraries': [
+ '-lEGL',
+ '-lGLESv2',
+ ],
+ },
+ }],
+ ],
}],
['OS=="win"', {
'dependencies': [
« no previous file with comments | « content/common/gpu/media/vaapi_video_decode_accelerator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698