| 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 91f95252c1bc912902b4eea8cace8df99e073650..cfa31b69c8a2e0efbf7c5f5bc8006375c7317450 100644
|
| --- a/cc/test/layer_tree_test_common.h
|
| +++ b/cc/test/layer_tree_test_common.h
|
| @@ -112,7 +112,8 @@ protected:
|
| void dispatchDidAddAnimation();
|
|
|
| virtual void runTest(bool threaded);
|
| - WebKit::WebThread* webThread() const { return m_webThread.get(); }
|
| + WebKit::WebThread* webThread() const { return m_webImplThread.get(); }
|
| + cc::Proxy* proxy() const { return m_layerTreeHost ? m_layerTreeHost->proxy() : 0; }
|
|
|
| cc::LayerTreeSettings m_settings;
|
| scoped_ptr<MockLayerImplTreeHostClient> m_client;
|
| @@ -129,7 +130,8 @@ private:
|
| bool m_scheduled;
|
| bool m_started;
|
|
|
| - scoped_ptr<WebKit::WebThread> m_webThread;
|
| + scoped_ptr<WebKit::WebThread> m_webImplThread;
|
| + cc::Thread* m_implThread;
|
| TimeoutTask* m_timeoutTask;
|
| BeginTask* m_beginTask;
|
| };
|
| @@ -145,7 +147,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;
|
| @@ -161,7 +163,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;
|
| };
|
|
|