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

Unified Diff: remoting/host/encoder_verbatim.cc

Issue 2829018: Fix thread usage in chromoting host (Closed)
Patch Set: removed useless test Created 10 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
« no previous file with comments | « remoting/host/client_connection_unittest.cc ('k') | remoting/host/session_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/encoder_verbatim.cc
diff --git a/remoting/host/encoder_verbatim.cc b/remoting/host/encoder_verbatim.cc
index 3151c72a91704ecf3020273ff1df242aac4f53fc..ce0d4056398a12476786b7530bb67a5e849d11ea 100644
--- a/remoting/host/encoder_verbatim.cc
+++ b/remoting/host/encoder_verbatim.cc
@@ -30,7 +30,8 @@ void EncoderVerbatim::Encode(const DirtyRects& dirty_rects,
EncodingState state = EncodingInProgress;
if (i == 0) {
state |= EncodingStarting;
- } else if (i == num_rects - 1) {
+ }
+ if (i == num_rects - 1) {
state |= EncodingEnded;
}
data_available_callback->Run(header.release(),
« no previous file with comments | « remoting/host/client_connection_unittest.cc ('k') | remoting/host/session_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698