summaryrefslogtreecommitdiffstats
path: root/media/base/media_switches.h
diff options
context:
space:
mode:
authormcasas <mcasas@chromium.org>2015-06-16 13:14:35 -0700
committerCommit bot <commit-bot@chromium.org>2015-06-16 20:15:18 +0000
commit354e3e2d4a380bf463d683d853c27227729d15f0 (patch)
treeaf96efde4240337fab27f5821120f32922d98e18 /media/base/media_switches.h
parentb720cf7c93444bfac90241884a04498aa5a4e936 (diff)
downloadchromium_src-354e3e2d4a380bf463d683d853c27227729d15f0.zip
chromium_src-354e3e2d4a380bf463d683d853c27227729d15f0.tar.gz
chromium_src-354e3e2d4a380bf463d683d853c27227729d15f0.tar.bz2
VideoCaptureParams: add flag for hinting capture using GpuMemoryBuffers & flag for it
This CL adds a command line flag and storage for it in VideoCaptureParams, so we can hint the Video Capture Device to use native GpuMemoryBuffers. Ths is an experimental CL to be used while other moving parts of the capture using GMBs are landed and performance numbers/finch experiments are collected. For consistency with Style Guide, VideoCaptureFormat and VideoCaptureParams are changed from class to struct. This flag is only used in Linux. BUG=440843 Review URL: https://codereview.chromium.org/1191443003 Cr-Commit-Position: refs/heads/master@{#334674}
Diffstat (limited to 'media/base/media_switches.h')
-rw-r--r--media/base/media_switches.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/media/base/media_switches.h b/media/base/media_switches.h
index 6daee4e..98eaead 100644
--- a/media/base/media_switches.h
+++ b/media/base/media_switches.h
@@ -27,6 +27,10 @@ MEDIA_EXPORT extern const char kAlsaInputDevice[];
MEDIA_EXPORT extern const char kAlsaOutputDevice[];
#endif
+#if defined(OS_LINUX)
+MEDIA_EXPORT extern const char kUseNativeGpuMemoryBuffersForCapture[];
+#endif
+
#if defined(OS_MACOSX)
MEDIA_EXPORT extern const char kEnableAVFoundation[];
MEDIA_EXPORT extern const char kForceQTKit[];