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

Unified Diff: media/base/media_switches.cc

Issue 1191443003: VideoCaptureParams: add flag for hinting capture using GpuMemoryBuffers & flag for it (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added #include "build/build_config.h" Created 5 years, 6 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 | « media/base/media_switches.h ('k') | media/base/video_capture_types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/media_switches.cc
diff --git a/media/base/media_switches.cc b/media/base/media_switches.cc
index 7989b7193661784daea41ac0af68737d9fcb7751..6f6677233b9af55b981753563dbd9f513311ce21 100644
--- a/media/base/media_switches.cc
+++ b/media/base/media_switches.cc
@@ -28,6 +28,13 @@ const char kAlsaInputDevice[] = "alsa-input-device";
const char kAlsaOutputDevice[] = "alsa-output-device";
#endif
+#if defined(OS_LINUX)
+// Try to use Native GpuMemoryBuffers for Video Capture. The actual use depends
+// on the actual hardware capabilities of the capture device and encoder(s).
+const char kUseNativeGpuMemoryBuffersForCapture[] =
+ "use-native-gpu-memory-buffers-for-capture";
+#endif
+
#if defined(OS_MACOSX)
// AVFoundation is available in versions 10.7 and onwards, and is to be used
// http://crbug.com/288562 for both audio and video device monitoring and for
« no previous file with comments | « media/base/media_switches.h ('k') | media/base/video_capture_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698