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

Unified Diff: content/renderer/media/rtc_video_capture_delegate.h

Issue 23587018: Replace media::VideoCapture::VideoFrameBuffer with media::VideoFrame. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@git-svn
Patch Set: 6ccf4fd6 Final. Created 7 years, 3 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 | « no previous file | content/renderer/media/rtc_video_capture_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/rtc_video_capture_delegate.h
diff --git a/content/renderer/media/rtc_video_capture_delegate.h b/content/renderer/media/rtc_video_capture_delegate.h
index 3adb56d8d3aca6366cfeb46f4aee41308b7a32d2..415b346c8389f25ea0a91bc85d8b9820afc4fcf1 100644
--- a/content/renderer/media/rtc_video_capture_delegate.h
+++ b/content/renderer/media/rtc_video_capture_delegate.h
@@ -29,9 +29,9 @@ class RtcVideoCaptureDelegate
CAPTURE_FAILED, // The capturer failed to start.
};
- typedef base::Callback<void(const media::VideoCapture::VideoFrameBuffer& buf)>
+ typedef base::Callback<void(const scoped_refptr<media::VideoFrame>&)>
FrameCapturedCallback;
- typedef base::Callback<void(CaptureState state)> StateChangeCallback;
+ typedef base::Callback<void(CaptureState)> StateChangeCallback;
RtcVideoCaptureDelegate(const media::VideoCaptureSessionId id,
VideoCaptureImplManager* vc_manager);
@@ -48,9 +48,9 @@ class RtcVideoCaptureDelegate
virtual void OnPaused(media::VideoCapture* capture) OVERRIDE;
virtual void OnError(media::VideoCapture* capture, int error_code) OVERRIDE;
virtual void OnRemoved(media::VideoCapture* capture) OVERRIDE;
- virtual void OnBufferReady(
+ virtual void OnFrameReady(
media::VideoCapture* capture,
- scoped_refptr<media::VideoCapture::VideoFrameBuffer> buf) OVERRIDE;
+ const scoped_refptr<media::VideoFrame>& frame) OVERRIDE;
virtual void OnDeviceInfoReceived(
media::VideoCapture* capture,
const media::VideoCaptureParams& device_info) OVERRIDE;
@@ -63,9 +63,9 @@ class RtcVideoCaptureDelegate
virtual ~RtcVideoCaptureDelegate();
- void OnBufferReadyOnCaptureThread(
+ void OnFrameReadyOnCaptureThread(
media::VideoCapture* capture,
- scoped_refptr<media::VideoCapture::VideoFrameBuffer> buf);
+ const scoped_refptr<media::VideoFrame>& frame);
void OnErrorOnCaptureThread(media::VideoCapture* capture);
void OnRemovedOnCaptureThread(media::VideoCapture* capture);
« no previous file with comments | « no previous file | content/renderer/media/rtc_video_capture_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698