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

Unified Diff: cc/trees/layer_tree_host_client.h

Issue 812543002: Update from https://crrev.com/308331 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5846343cef59e1501b4b36f3c08f239b2f1ecf01..a09693f5d67a6771fa17ee47d0d20db0d00c79b5 100644
--- a/cc/trees/layer_tree_host_client.h
+++ b/cc/trees/layer_tree_host_client.h
@@ -38,11 +38,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;
@@ -58,9 +59,6 @@ class LayerTreeHostClient {
// a TextureLayer that calls SetRateLimitContext(true).
virtual void RateLimitSharedMainThreadContext() {}
- // This hook is for testing.
- virtual void DidFailToInitializeOutputSurface() {}
-
protected:
virtual ~LayerTreeHostClient() {}
};
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698