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

Unified Diff: media/capture/thread_safe_capture_oracle.h

Issue 1199593005: Automatic resolution throttling for screen capture pipeline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@resolution_chooser_ITEM13
Patch Set: Addressed hubbe's nit. 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
Index: media/capture/thread_safe_capture_oracle.h
diff --git a/media/capture/thread_safe_capture_oracle.h b/media/capture/thread_safe_capture_oracle.h
index 0c3b77ad153431fad61d0d5b65b0e73580b48fda..c5d83dfee7b2d1aeb421d1440ad9563a7c02bd35 100644
--- a/media/capture/thread_safe_capture_oracle.h
+++ b/media/capture/thread_safe_capture_oracle.h
@@ -11,7 +11,6 @@
#include "base/memory/scoped_ptr.h"
#include "media/base/media_export.h"
#include "media/base/video_frame.h"
-#include "media/capture/capture_resolution_chooser.h"
#include "media/capture/video_capture_oracle.h"
#include "media/video/capture/video_capture_device.h"
@@ -28,7 +27,8 @@ class MEDIA_EXPORT ThreadSafeCaptureOracle
: public base::RefCountedThreadSafe<ThreadSafeCaptureOracle> {
public:
ThreadSafeCaptureOracle(scoped_ptr<VideoCaptureDevice::Client> client,
- const VideoCaptureParams& params);
+ const VideoCaptureParams& params,
+ bool enable_auto_throttling);
// Called when a captured frame is available or an error has occurred.
// If |success| is true then |frame| is valid and |timestamp| indicates when
@@ -95,9 +95,6 @@ class MEDIA_EXPORT ThreadSafeCaptureOracle
// The video capture parameters used to construct the oracle proxy.
const VideoCaptureParams params_;
-
- // Determines video capture frame sizes.
- CaptureResolutionChooser resolution_chooser_;
};
} // namespace media

Powered by Google App Engine
This is Rietveld 408576698