| Index: cc/test/layer_tree_test_common.h
|
| diff --git a/cc/test/layer_tree_test_common.h b/cc/test/layer_tree_test_common.h
|
| index ee8681829dc652b230bbe5e6dbb8afd97afdb621..ff8344e81dcf4def27f214779faebb74c80bd8b3 100644
|
| --- a/cc/test/layer_tree_test_common.h
|
| +++ b/cc/test/layer_tree_test_common.h
|
| @@ -9,7 +9,7 @@
|
| #include "base/threading/thread.h"
|
| #include "cc/layer_tree_host.h"
|
| #include "cc/layer_tree_host_impl.h"
|
| -#include "cc/scoped_thread_proxy.h"
|
| +#include "cc/thread.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
| #include "third_party/WebKit/Source/Platform/chromium/public/WebAnimationDelegate.h"
|
|
|
| @@ -18,8 +18,6 @@ class LayerImpl;
|
| class LayerTreeHost;
|
| class LayerTreeHostClient;
|
| class LayerTreeHostImpl;
|
| -class Thread;
|
| -
|
|
|
| // Used by test stubs to notify the test when something interesting happens.
|
| class TestHooks : public WebKit::WebAnimationDelegate {
|
| @@ -74,7 +72,6 @@ public:
|
| void endTest();
|
| void endTestAfterDelay(int delayMilliseconds);
|
|
|
| - void postSetNeedsAnimateToMainThread();
|
| void postAddAnimationToMainThread(Layer*);
|
| void postAddInstantAnimationToMainThread();
|
| void postSetNeedsCommitToMainThread();
|
| @@ -97,7 +94,6 @@ protected:
|
|
|
| void realEndTest();
|
|
|
| - void dispatchSetNeedsAnimate();
|
| void dispatchAddInstantAnimation();
|
| void dispatchAddAnimation(Layer*);
|
| void dispatchSetNeedsCommit();
|
| @@ -116,9 +112,6 @@ protected:
|
| scoped_ptr<MockLayerImplTreeHostClient> m_client;
|
| scoped_ptr<LayerTreeHost> m_layerTreeHost;
|
|
|
| -protected:
|
| - scoped_refptr<ScopedThreadProxy> m_mainThreadProxy;
|
| -
|
| private:
|
| bool m_beginning;
|
| bool m_endWhenBeginReturns;
|
| @@ -129,6 +122,8 @@ private:
|
| scoped_ptr<Thread> m_mainCCThread;
|
| scoped_ptr<base::Thread> m_implThread;
|
| base::CancelableClosure m_timeout;
|
| + base::WeakPtr<ThreadedTest> m_mainThreadWeakPtr;
|
| + base::WeakPtrFactory<ThreadedTest> m_weakFactory;
|
| };
|
|
|
| class ThreadedTestThreadOnly : public ThreadedTest {
|
|
|