diff options
Diffstat (limited to 'media')
-rw-r--r-- | media/video/capture/video_capture.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/media/video/capture/video_capture.h b/media/video/capture/video_capture.h index 65789fb..9a197e2 100644 --- a/media/video/capture/video_capture.h +++ b/media/video/capture/video_capture.h @@ -24,6 +24,7 @@ class VideoCapture { kStarted, kPaused, kStopped, + kStopping, kError, }; @@ -42,7 +43,7 @@ class VideoCapture { int height; int stride; size_t buffer_size; - void* memory_pointer; + uint8* memory_pointer; base::Time timestamp; private: @@ -98,9 +99,8 @@ class VideoCapture { // Request video capture to stop capturing for client |handler|. virtual void StopCapture(EventHandler* handler) = 0; - // TODO(wjia): Add FeedBuffer when buffer sharing is needed between video - // capture and downstream module. - // virtual void FeedBuffer(scoped_refptr<VideoFrameBuffer> buffer) = 0; + // Feed buffer to video capture when done with it. + virtual void FeedBuffer(scoped_refptr<VideoFrameBuffer> buffer) = 0; virtual bool CaptureStarted() = 0; virtual int CaptureWidth() = 0; |