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

Unified Diff: remoting/client/chromoting_client.cc

Issue 10879085: Cleanup RectangleUpdateDecoder and VideoStub (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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: remoting/client/chromoting_client.cc
diff --git a/remoting/client/chromoting_client.cc b/remoting/client/chromoting_client.cc
index 3bdc7b6bb33ff896da8f79c48c948b8c4de5b7dd..1d2773d50e00d3433e78151ad6a8e437ed7c46e5 100644
--- a/remoting/client/chromoting_client.cc
+++ b/remoting/client/chromoting_client.cc
@@ -67,8 +67,9 @@ void ChromotingClient::Start(
void ChromotingClient::Stop(const base::Closure& shutdown_task) {
DCHECK(task_runner_->BelongsToCurrentThread());
- // Drop all pending packets.
- rectangle_decoder_->DropAllPackets();
+ // Stop decoder so we don't waste CPU cycles decoding video packets we will
+ // never show.
+ rectangle_decoder_->Stop();
connection_->Disconnect(base::Bind(&ChromotingClient::OnDisconnected,
weak_ptr_, shutdown_task));
« no previous file with comments | « no previous file | remoting/client/rectangle_update_decoder.h » ('j') | remoting/client/rectangle_update_decoder.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698