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

Unified Diff: cc/trees/blocking_task_runner.cc

Issue 485043003: cc: Use correct message loop proxy in BlockingTaskRunner (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix tests. Created 6 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: cc/trees/blocking_task_runner.cc
diff --git a/cc/trees/blocking_task_runner.cc b/cc/trees/blocking_task_runner.cc
index 5c33f40d4fcef5a0c30761b6df26564b41f651a5..27d4f1050b5179238257f9e867a90e0ed6a323cf 100644
--- a/cc/trees/blocking_task_runner.cc
+++ b/cc/trees/blocking_task_runner.cc
@@ -74,6 +74,13 @@ bool BlockingTaskRunner::PostTask(const tracked_objects::Location& from_here,
return true;
}
+void BlockingTaskRunner::SetTaskRunner(
+ scoped_refptr<base::SingleThreadTaskRunner> task_runner) {
+ base::AutoLock lock(lock_);
+ DCHECK(!capture_);
+ task_runner_ = task_runner;
+}
+
void BlockingTaskRunner::SetCapture(bool capture) {
DCHECK(BelongsToCurrentThread());

Powered by Google App Engine
This is Rietveld 408576698