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

Unified Diff: content/browser/renderer_host/media/video_capture_controller.h

Issue 418283003: "Buttery Smooth" Tab Capture. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Un-inline some methods, plus REBASE. Created 6 years, 4 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
Index: content/browser/renderer_host/media/video_capture_controller.h
diff --git a/content/browser/renderer_host/media/video_capture_controller.h b/content/browser/renderer_host/media/video_capture_controller.h
index c0c3beda263bd50aaff0a7b66e5b10bf147f3c4f..92ab4e77b47456a4be4cc888211dd8999ac67ced 100644
--- a/content/browser/renderer_host/media/video_capture_controller.h
+++ b/content/browser/renderer_host/media/video_capture_controller.h
@@ -66,7 +66,12 @@ class VideoCaptureBufferPool;
class CONTENT_EXPORT VideoCaptureController {
public:
- VideoCaptureController();
+ // |max_buffers| is the maximum number of video frame buffers in-flight at any
+ // one time. This value should be based on the logical capacity of the
+ // capture pipeline, and not on hardware performance. For example, tab
+ // capture requires more buffers than webcam capture because the pipeline is
+ // longer (it includes read-backs pending in the GPU pipeline).
+ explicit VideoCaptureController(int max_buffers);
virtual ~VideoCaptureController();
base::WeakPtr<VideoCaptureController> GetWeakPtr();

Powered by Google App Engine
This is Rietveld 408576698