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

Unified Diff: remoting/host/client_session.cc

Issue 872433005: Move capture scheduling logic from VideoScheduler to CaptureScheduler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 | « remoting/host/capture_scheduler_unittest.cc ('k') | remoting/host/video_scheduler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/client_session.cc
diff --git a/remoting/host/client_session.cc b/remoting/host/client_session.cc
index 1b580dc8370e8bea4964d32816d75d82b471335c..6fae3250d63d61ac6e327debccb43ec6dd7c3a44 100644
--- a/remoting/host/client_session.cc
+++ b/remoting/host/client_session.cc
@@ -464,12 +464,14 @@ void ClientSession::ResetVideoPipeline() {
&mouse_clamping_filter_);
// Apply video-control parameters to the new scheduler.
- video_scheduler_->Pause(pause_video_);
video_scheduler_->SetLosslessEncode(lossless_video_encode_);
video_scheduler_->SetLosslessColor(lossless_video_color_);
// Start capturing the screen.
video_scheduler_->Start();
+
+ // Pause capturing if necessary.
+ video_scheduler_->Pause(pause_video_);
}
void ClientSession::SetGnubbyAuthHandlerForTesting(
« no previous file with comments | « remoting/host/capture_scheduler_unittest.cc ('k') | remoting/host/video_scheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698