Index: cc/test/fake_layer_tree_host_client.h |
diff --git a/cc/test/fake_layer_tree_host_client.h b/cc/test/fake_layer_tree_host_client.h |
index 7f7bd351dd94574a40ffd5d0458401f869cb8a44..d702dc40ba25788129c20ccfb9e3f887f2b8df80 100644 |
--- a/cc/test/fake_layer_tree_host_client.h |
+++ b/cc/test/fake_layer_tree_host_client.h |
@@ -26,6 +26,9 @@ class FakeLayerTreeHostClient : public LayerTreeHostClient, |
explicit FakeLayerTreeHostClient(RendererOptions options); |
virtual ~FakeLayerTreeHostClient(); |
+ // Caller responsible for unsetting this and maintaining the host's lifetime. |
+ void SetLayerTreeHost(LayerTreeHost* host) { host_ = host; } |
+ |
// LayerTreeHostClient implementation. |
virtual void WillBeginMainFrame(int frame_id) OVERRIDE {} |
virtual void DidBeginMainFrame() OVERRIDE {} |
@@ -34,7 +37,7 @@ class FakeLayerTreeHostClient : public LayerTreeHostClient, |
virtual void ApplyScrollAndScale(const gfx::Vector2d& scroll_delta, |
float page_scale) OVERRIDE {} |
- virtual scoped_ptr<OutputSurface> CreateOutputSurface(bool fallback) OVERRIDE; |
+ virtual void RequestNewOutputSurface(bool fallback) OVERRIDE; |
virtual void DidInitializeOutputSurface() OVERRIDE {} |
virtual void WillCommit() OVERRIDE {} |
virtual void DidCommit() OVERRIDE {} |
@@ -48,6 +51,8 @@ class FakeLayerTreeHostClient : public LayerTreeHostClient, |
private: |
bool use_software_rendering_; |
bool use_delegating_renderer_; |
+ |
+ LayerTreeHost* host_; |
}; |
} // namespace cc |