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

Unified Diff: content/renderer/media/video_capture_impl.cc

Issue 7222024: use control message instead of routed for video capture (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 6 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
Index: content/renderer/media/video_capture_impl.cc
===================================================================
--- content/renderer/media/video_capture_impl.cc (revision 89543)
+++ content/renderer/media/video_capture_impl.cc (working copy)
@@ -72,7 +72,7 @@
void VideoCaptureImpl::DeInit(Task* task) {
if (state_ == kStarted)
- Send(new VideoCaptureHostMsg_Stop(0, device_id_));
+ Send(new VideoCaptureHostMsg_Stop(device_id_));
base::MessageLoopProxy* io_message_loop_proxy =
ChildProcess::current()->io_message_loop_proxy();
@@ -292,7 +292,7 @@
DCHECK(ml_proxy_->BelongsToCurrentThread());
if (state_ != kStarted) {
- Send(new VideoCaptureHostMsg_BufferReady(0, device_id_, buffer_id));
+ Send(new VideoCaptureHostMsg_BufferReady(device_id_, buffer_id));
return;
}
@@ -305,7 +305,7 @@
it->first->OnBufferReady(this, buffer);
}
- Send(new VideoCaptureHostMsg_BufferReady(0, device_id_, buffer_id));
+ Send(new VideoCaptureHostMsg_BufferReady(device_id_, buffer_id));
}
void VideoCaptureImpl::DoStateChanged(const media::VideoCapture::State& state) {
@@ -374,7 +374,7 @@
if (state_ == kStarted) {
state_ = kStopping;
- Send(new VideoCaptureHostMsg_Stop(0, device_id_));
+ Send(new VideoCaptureHostMsg_Stop(device_id_));
width_ = height_ = 0;
STLDeleteContainerPairSecondPointers(cached_dibs_.begin(),
cached_dibs_.end());
@@ -405,7 +405,7 @@
params.frame_per_second = frame_rate_;
params.session_id = session_id_;
- Send(new VideoCaptureHostMsg_Start(0, device_id_, params));
+ Send(new VideoCaptureHostMsg_Start(device_id_, params));
state_ = kStarted;
for (ClientInfo::iterator it = clients_.begin(); it != clients_.end(); it++) {
it->first->OnStarted(this);
« no previous file with comments | « content/common/media/video_capture_messages.h ('k') | content/renderer/media/video_capture_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698