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

Unified Diff: media/capture/screen_capture_device_core.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: Move all end_t assignments out of for-loop init. Created 5 years, 5 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/screen_capture_device_core.h
diff --git a/media/capture/screen_capture_device_core.h b/media/capture/screen_capture_device_core.h
index 86c1fc57fe370180e8e01c868671014528fa8b47..03d6625f94f72593460e9c56c11c10a54889e3de 100644
--- a/media/capture/screen_capture_device_core.h
+++ b/media/capture/screen_capture_device_core.h
@@ -21,10 +21,10 @@ struct VideoCaptureParams;
class ThreadSafeCaptureOracle;
// Keeps track of the video capture source frames and executes copying.
-class VideoCaptureMachine {
+class MEDIA_EXPORT VideoCaptureMachine {
public:
- VideoCaptureMachine() {}
- virtual ~VideoCaptureMachine() {}
+ VideoCaptureMachine();
+ virtual ~VideoCaptureMachine();
// Starts capturing.
// |callback| is invoked with true if succeeded. Otherwise, with false.
@@ -36,6 +36,11 @@ class VideoCaptureMachine {
// |callback| is invoked after the capturing has stopped.
virtual void Stop(const base::Closure& callback) = 0;
+ // Returns true if the video capture is configured to monitor end-to-end
+ // system utilization, and alter frame sizes and/or frame rates to mitigate
+ // overloading or under-utilization.
+ virtual bool IsAutoThrottlingEnabled() const;
+
private:
DISALLOW_COPY_AND_ASSIGN(VideoCaptureMachine);
};
« no previous file with comments | « content/browser/media/capture/web_contents_video_capture_device.cc ('k') | media/capture/screen_capture_device_core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698