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

Unified Diff: media/video/capture/video_capture_device.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 | « media/video/capture/video_capture.h ('k') | media/video/capture/video_capture_device_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/video/capture/video_capture_device.h
diff --git a/media/video/capture/video_capture_device.h b/media/video/capture/video_capture_device.h
index c10a3aefca076ae9fa9da255b928ea44e86567e5..2e60256a8f121f232b950e750391ac640b9e8484 100644
--- a/media/video/capture/video_capture_device.h
+++ b/media/video/capture/video_capture_device.h
@@ -125,16 +125,17 @@ class MEDIA_EXPORT VideoCaptureDevice {
// Reserve an output buffer into which a video frame can be captured
// directly. If all buffers are currently busy, returns NULL.
//
- // The returned VideoFrames will always be allocated with a YV12 format. The
- // size will match that specified by an earlier call to OnFrameInfo. It is
- // the VideoCaptureDevice's responsibility to obey whatever stride and
- // memory layout are indicated on the returned VideoFrame object.
+ // The returned VideoFrames will always be allocated with a YV12 format and
+ // have dimensions matching |size|. It is the VideoCaptureDevice's
+ // responsibility to obey whatever stride and memory layout are indicated on
+ // the returned VideoFrame object.
//
// The output buffer stays reserved for use by the calling
// VideoCaptureDevice until either the last reference to the VideoFrame is
// released, or until the buffer is passed back to the Client's
// OnIncomingCapturedFrame() method.
- virtual scoped_refptr<media::VideoFrame> ReserveOutputBuffer() = 0;
+ virtual scoped_refptr<media::VideoFrame> ReserveOutputBuffer(
+ const gfx::Size& size) = 0;
// Captured a new video frame as a raw buffer. The size, color format, and
// layout are taken from the parameters specified by an earlier call to
« no previous file with comments | « media/video/capture/video_capture.h ('k') | media/video/capture/video_capture_device_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698