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

Unified Diff: cc/base/thread.h

Issue 17362002: cc: Remove FakeThread, use SingleThreadTaskRunner in scheduling classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm-fakethread: rebase Created 7 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 | « base/test/test_simple_task_runner.cc ('k') | cc/base/thread_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/base/thread.h
diff --git a/cc/base/thread.h b/cc/base/thread.h
index 44be3b4a399d81598c2ac1598a09fb71af68979d..296f70ecbad267827bb97117bcf1e4c89d028b98 100644
--- a/cc/base/thread.h
+++ b/cc/base/thread.h
@@ -10,6 +10,8 @@
#include "base/time.h"
#include "cc/base/cc_export.h"
+namespace base { class SingleThreadTaskRunner; }
+
namespace cc {
// Thread provides basic infrastructure for messaging with the compositor in a
@@ -25,6 +27,8 @@ class CC_EXPORT Thread {
virtual void PostDelayedTask(base::Closure cb, base::TimeDelta delay) = 0;
virtual bool BelongsToCurrentThread() const = 0;
+
+ virtual base::SingleThreadTaskRunner* TaskRunner() = 0;
};
} // namespace cc
« no previous file with comments | « base/test/test_simple_task_runner.cc ('k') | cc/base/thread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698