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

Unified Diff: remoting/host/capturer.cc

Issue 3305001: Move decoder into separate thread, clean up API layering, and redo update protocl (Closed)
Patch Set: Fix compile error. Created 10 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
« no previous file with comments | « remoting/client/x11_view.cc ('k') | remoting/host/chromoting_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/capturer.cc
diff --git a/remoting/host/capturer.cc b/remoting/host/capturer.cc
index b61132b687f927b664528dceca4251fcbb842bac..61148e659148ca4432d70809a124959abd38734c 100644
--- a/remoting/host/capturer.cc
+++ b/remoting/host/capturer.cc
@@ -6,6 +6,8 @@
#include <algorithm>
+#include "remoting/base/tracer.h"
+
namespace remoting {
Capturer::Capturer()
@@ -43,16 +45,18 @@ void Capturer::InvalidateFullScreen() {
void Capturer::CaptureInvalidRects(CaptureCompletedCallback* callback) {
// Calculate which rects need to be captured.
+ TraceContext::tracer()->PrintString("Started CalculateInvalidRects");
CalculateInvalidRects();
+ TraceContext::tracer()->PrintString("Done CalculateInvalidRects");
// Braced to scope the lock.
InvalidRects local_rects;
{
AutoLock auto_inval_rects_lock(inval_rects_lock_);
- local_rects = inval_rects_;
- inval_rects_.clear();
+ local_rects.swap(inval_rects_);
}
+ TraceContext::tracer()->PrintString("Start CaptureRects");
CaptureRects(local_rects, callback);
}
« no previous file with comments | « remoting/client/x11_view.cc ('k') | remoting/host/chromoting_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698