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

Unified Diff: cc/base/thread_impl.cc

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 | « cc/base/thread_impl.h ('k') | cc/layers/tiled_layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/base/thread_impl.cc
diff --git a/cc/base/thread_impl.cc b/cc/base/thread_impl.cc
index 8e779cbf9d853f9c40a1dccd33c61c9569533570..c76213dfdedba4ed93c7d2c1c9a2a0d0c7e0b09f 100644
--- a/cc/base/thread_impl.cc
+++ b/cc/base/thread_impl.cc
@@ -32,6 +32,10 @@ bool ThreadImpl::BelongsToCurrentThread() const {
return thread_->BelongsToCurrentThread();
}
+base::SingleThreadTaskRunner* ThreadImpl::TaskRunner() {
+ return thread_.get();
+}
+
ThreadImpl::ThreadImpl(scoped_refptr<base::MessageLoopProxy> thread)
: thread_(thread) {}
« no previous file with comments | « cc/base/thread_impl.h ('k') | cc/layers/tiled_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698