Index: content/browser/media/capture/content_video_capture_device_core.h |
diff --git a/content/browser/media/capture/content_video_capture_device_core.h b/content/browser/media/capture/content_video_capture_device_core.h |
index f56c10950f5890145ca37ee66923c33a39988fa0..9cd3244a07b165c7d1988d9750b4aa5e57177d57 100644 |
--- a/content/browser/media/capture/content_video_capture_device_core.h |
+++ b/content/browser/media/capture/content_video_capture_device_core.h |
@@ -62,6 +62,10 @@ class ThreadSafeCaptureOracle |
return oracle_.min_capture_period(); |
} |
+ gfx::Size max_frame_size() const { |
+ return params_.requested_format.frame_size; |
+ } |
+ |
// Returns the current capture resolution. |
gfx::Size GetCaptureSize() const; |
@@ -97,13 +101,10 @@ class ThreadSafeCaptureOracle |
VideoCaptureOracle oracle_; |
// The video capture parameters used to construct the oracle proxy. |
- media::VideoCaptureParams params_; |
- |
- // Indicates if capture size has been updated after construction. |
- bool capture_size_updated_; |
+ const media::VideoCaptureParams params_; |
- // The current capturing format, as a media::VideoFrame::Format. |
- media::VideoFrame::Format video_frame_format_; |
+ // The current video capture size. |
+ gfx::Size capture_size_; |
}; |
// Keeps track of the video capture source frames and executes copying on the |