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

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

Issue 2395163002: VideoCapture: migrate VideoCapture renderer-->host messages to mojo, part 2 (Closed)
Patch Set: rockot@s comments on renaming and return types Created 4 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
Index: content/renderer/media/video_capture_impl.cc
diff --git a/content/renderer/media/video_capture_impl.cc b/content/renderer/media/video_capture_impl.cc
index c91e0e66c244841f3cdbc7b724b356e036671735..a111a948b733e7774ab8838df7aaa7cac2dfa442 100644
--- a/content/renderer/media/video_capture_impl.cc
+++ b/content/renderer/media/video_capture_impl.cc
@@ -134,7 +134,7 @@ void VideoCaptureImpl::SuspendCapture(bool suspend) {
if (suspend)
GetVideoCaptureHost()->Pause(device_id_);
else
- Send(new VideoCaptureHostMsg_Resume(device_id_, session_id_, params_));
+ GetVideoCaptureHost()->Resume(device_id_, session_id_, params_);
}
void VideoCaptureImpl::StartCapture(
@@ -532,7 +532,7 @@ void VideoCaptureImpl::StartCaptureInternal() {
DCHECK(io_task_runner_->BelongsToCurrentThread());
DCHECK(device_id_);
- Send(new VideoCaptureHostMsg_Start(device_id_, session_id_, params_));
+ GetVideoCaptureHost()->Start(device_id_, session_id_, params_);
state_ = VIDEO_CAPTURE_STATE_STARTED;
}
« no previous file with comments | « content/common/video_capture_struct_traits.cc ('k') | content/renderer/media/video_capture_impl_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698