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..864a11d51d19d1f5098a3805935550089d4bd902 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->proxy(); } |
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; |
}; |