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); |
}; |