| 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 0e02cfabc0b26d3d014036982cd50a244ca37cd9..64fee75a5db31abc6f658711f86c35a513425b7c 100644
|
| --- a/cc/test/layer_tree_test_common.h
|
| +++ b/cc/test/layer_tree_test_common.h
|
| @@ -114,7 +114,8 @@ protected:
|
|
|
| virtual void runTest(bool threaded);
|
|
|
| - cc::Thread* implThread() { return m_implCCThread.get(); }
|
| + cc::Thread* implThread() { return proxy() ? proxy()->implThread() : 0; }
|
| + cc::Proxy* proxy() const { return m_layerTreeHost ? m_layerTreeHost->proxy() : 0; }
|
|
|
| cc::LayerTreeSettings m_settings;
|
| scoped_ptr<MockLayerImplTreeHostClient> m_client;
|
| @@ -132,7 +133,6 @@ private:
|
| bool m_started;
|
|
|
| scoped_ptr<cc::Thread> m_mainCCThread;
|
| - scoped_ptr<cc::Thread> m_implCCThread;
|
| scoped_ptr<base::Thread> m_implThread;
|
| base::CancelableClosure m_timeout;
|
| };
|
| @@ -148,7 +148,7 @@ public:
|
| // Adapts LayerTreeHostImpl for test. Runs real code, then invokes test hooks.
|
| class MockLayerTreeHostImpl : public cc::LayerTreeHostImpl {
|
| public:
|
| - static scoped_ptr<MockLayerTreeHostImpl> create(TestHooks*, const cc::LayerTreeSettings&, cc::LayerTreeHostImplClient*);
|
| + static scoped_ptr<MockLayerTreeHostImpl> create(TestHooks*, const cc::LayerTreeSettings&, cc::LayerTreeHostImplClient*, cc::Proxy*);
|
|
|
| virtual void beginCommit() OVERRIDE;
|
| virtual void commitComplete() OVERRIDE;
|
| @@ -164,7 +164,7 @@ protected:
|
| virtual base::TimeDelta lowFrequencyAnimationInterval() const OVERRIDE;
|
|
|
| private:
|
| - MockLayerTreeHostImpl(TestHooks*, const cc::LayerTreeSettings&, cc::LayerTreeHostImplClient*);
|
| + MockLayerTreeHostImpl(TestHooks*, const cc::LayerTreeSettings&, cc::LayerTreeHostImplClient*, cc::Proxy*);
|
|
|
| TestHooks* m_testHooks;
|
| };
|
|
|