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

Unified Diff: cc/trees/layer_tree_host_client.h

Issue 738983002: Move output surface fallback from cc to embedders (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years 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/trees/layer_tree_host_client.h
diff --git a/cc/trees/layer_tree_host_client.h b/cc/trees/layer_tree_host_client.h
index 5b02964e89f019c9f45798e7297c8b6380171dcf..10d47afd18ab59a783b1984f68526732db8056e6 100644
--- a/cc/trees/layer_tree_host_client.h
+++ b/cc/trees/layer_tree_host_client.h
@@ -35,11 +35,12 @@ class LayerTreeHostClient {
float page_scale,
float top_controls_delta) = 0;
// Request an OutputSurface from the client. When the client has one it should
- // call LayerTreeHost::SetOutputSurface. If fallback is true, it should
- // attempt to create an OutputSurface that is guaranteed to initialize
- // correctly.
- virtual void RequestNewOutputSurface(bool fallback) = 0;
+ // call LayerTreeHost::SetOutputSurface. This will result in either
+ // DidFailToInitializeOutputSurface or DidInitializeOutputSurface being
+ // called.
+ virtual void RequestNewOutputSurface() = 0;
virtual void DidInitializeOutputSurface() = 0;
+ virtual void DidFailToInitializeOutputSurface() = 0;
virtual void WillCommit() = 0;
virtual void DidCommit() = 0;
virtual void DidCommitAndDrawFrame() = 0;
@@ -55,9 +56,6 @@ class LayerTreeHostClient {
// a TextureLayer that calls SetRateLimitContext(true).
virtual void RateLimitSharedMainThreadContext() {}
- // This hook is for testing.
- virtual void DidFailToInitializeOutputSurface() {}
-
protected:
virtual ~LayerTreeHostClient() {}
};

Powered by Google App Engine
This is Rietveld 408576698