Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1157)

Unified Diff: cc/test/fake_layer_tree_host_client.h

Issue 348093004: Make cc output surface creation async (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698