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

Unified Diff: media/video/capture/video_capture_proxy.cc

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 | « media/video/capture/video_capture_proxy.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/video/capture/video_capture_proxy.cc
diff --git a/media/video/capture/video_capture_proxy.cc b/media/video/capture/video_capture_proxy.cc
index eb8fd071909dc34af9e21a2c41bf8ec05a30204e..3adbb7ce3b269ce08f7d1bc4dde4d1627b8b7eff 100644
--- a/media/video/capture/video_capture_proxy.cc
+++ b/media/video/capture/video_capture_proxy.cc
@@ -77,15 +77,16 @@ void VideoCaptureHandlerProxy::OnRemoved(VideoCapture* capture) {
GetState(capture)));
}
-void VideoCaptureHandlerProxy::OnBufferReady(
+void VideoCaptureHandlerProxy::OnFrameReady(
VideoCapture* capture,
- scoped_refptr<VideoCapture::VideoFrameBuffer> buffer) {
- main_message_loop_->PostTask(FROM_HERE, base::Bind(
- &VideoCaptureHandlerProxy::OnBufferReadyOnMainThread,
- base::Unretained(this),
- capture,
- GetState(capture),
- buffer));
+ const scoped_refptr<VideoFrame>& frame) {
+ main_message_loop_->PostTask(
+ FROM_HERE,
+ base::Bind(&VideoCaptureHandlerProxy::OnFrameReadyOnMainThread,
+ base::Unretained(this),
+ capture,
+ GetState(capture),
+ frame));
}
void VideoCaptureHandlerProxy::OnDeviceInfoReceived(
@@ -135,12 +136,12 @@ void VideoCaptureHandlerProxy::OnRemovedOnMainThread(
proxied_->OnRemoved(capture);
}
-void VideoCaptureHandlerProxy::OnBufferReadyOnMainThread(
+void VideoCaptureHandlerProxy::OnFrameReadyOnMainThread(
VideoCapture* capture,
const VideoCaptureState& state,
- scoped_refptr<VideoCapture::VideoFrameBuffer> buffer) {
+ const scoped_refptr<VideoFrame>& frame) {
state_ = state;
- proxied_->OnBufferReady(capture, buffer);
+ proxied_->OnFrameReady(capture, frame);
}
void VideoCaptureHandlerProxy::OnDeviceInfoReceivedOnMainThread(
« no previous file with comments | « media/video/capture/video_capture_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698