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

Unified Diff: cc/test/fake_proxy.h

Issue 17114008: cc: Remove cc::Thread and cc::ThreadImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm-thread: clarify threads in UpdateBackgroundAnimateTicking, test asserts 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
Index: cc/test/fake_proxy.h
diff --git a/cc/test/fake_proxy.h b/cc/test/fake_proxy.h
index b806df425a3c4f1e9314308682dfa2c8201142ca..5394099016877666c746deee9aca1fefb87bb2b3 100644
--- a/cc/test/fake_proxy.h
+++ b/cc/test/fake_proxy.h
@@ -5,7 +5,7 @@
#ifndef CC_TEST_FAKE_PROXY_H_
#define CC_TEST_FAKE_PROXY_H_
-#include "cc/base/thread.h"
+#include "base/single_thread_task_runner.h"
#include "cc/trees/layer_tree_host.h"
#include "cc/trees/proxy.h"
@@ -13,8 +13,12 @@ namespace cc {
class FakeProxy : public Proxy {
public:
- explicit FakeProxy(scoped_ptr<Thread> impl_thread)
- : Proxy(impl_thread.Pass()),
+ FakeProxy()
+ : Proxy(scoped_refptr<base::SingleThreadTaskRunner>()),
+ layer_tree_host_(NULL) {}
+ explicit FakeProxy(
+ scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner)
+ : Proxy(impl_task_runner),
layer_tree_host_(NULL) {}
void SetLayerTreeHost(LayerTreeHost* host);

Powered by Google App Engine
This is Rietveld 408576698