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

Unified Diff: media/video/capture/video_capture.h

Issue 23551011: From Video Capture, abolish OnFrameInfo and enable resolution changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes from bbudge Created 7 years, 2 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
« no previous file with comments | « content/renderer/pepper/pepper_video_capture_host.cc ('k') | media/video/capture/video_capture_device.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/video/capture/video_capture.h
diff --git a/media/video/capture/video_capture.h b/media/video/capture/video_capture.h
index 3a4eb0e2d3271a9582ea9e8e51e348db81f77b28..9a0e94378bb3dbf06e9d37222ea558448dbdff98 100644
--- a/media/video/capture/video_capture.h
+++ b/media/video/capture/video_capture.h
@@ -45,35 +45,23 @@ class MEDIA_EXPORT VideoCapture {
VideoCapture* capture,
const scoped_refptr<media::VideoFrame>& frame) = 0;
- // Notify client about device info.
- virtual void OnDeviceInfoReceived(
- VideoCapture* capture,
- const VideoCaptureParams& device_info) = 0;
-
- // Notify client about the newly changed device info.
- virtual void OnDeviceInfoChanged(
- VideoCapture* capture,
- const VideoCaptureParams& device_info) {};
-
protected:
virtual ~EventHandler() {}
};
VideoCapture() {}
- // Request video capture to start capturing with |capability|.
+ // Request video capture to start capturing with |params|.
// Also register |handler| with video capture for event handling.
// |handler| must remain valid until it has received |OnRemoved()|.
virtual void StartCapture(EventHandler* handler,
- const VideoCaptureCapability& capability) = 0;
+ const VideoCaptureParams& params) = 0;
// Request video capture to stop capturing for client |handler|.
// |handler| must remain valid until it has received |OnRemoved()|.
virtual void StopCapture(EventHandler* handler) = 0;
virtual bool CaptureStarted() = 0;
- virtual int CaptureWidth() = 0;
- virtual int CaptureHeight() = 0;
virtual int CaptureFrameRate() = 0;
protected:
« no previous file with comments | « content/renderer/pepper/pepper_video_capture_host.cc ('k') | media/video/capture/video_capture_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698