diff options
author | mcasas <mcasas@chromium.org> | 2015-06-16 13:14:35 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-06-16 20:15:18 +0000 |
commit | 354e3e2d4a380bf463d683d853c27227729d15f0 (patch) | |
tree | af96efde4240337fab27f5821120f32922d98e18 /media/base/media_switches.h | |
parent | b720cf7c93444bfac90241884a04498aa5a4e936 (diff) | |
download | chromium_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.h | 4 |
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[]; |