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 bde12dadc7da78c2c0e3b750651272deedb12c59..5c1cc1d27b519ad52b8b736b64525da3ceb13c6a 100644 |
--- a/cc/trees/layer_tree_host_client.h |
+++ b/cc/trees/layer_tree_host_client.h |
@@ -44,6 +44,12 @@ class LayerTreeHostClient { |
// the same thread as the OutputSurface's context. |
virtual scoped_refptr<cc::ContextProvider> OffscreenContextProvider() = 0; |
+ // Requests that the client insert a rate limiting token in the shared main |
+ // thread context's command stream that will block if the context gets too far |
+ // ahead of the compositor's command stream. Only needed if the tree contains |
+ // a TextureLayer that calls SetRateLimitContext(true). |
+ virtual void RateLimitSharedMainThreadContext() {} |
+ |
// This hook is for testing. |
virtual void DidFailToInitializeOutputSurface() {} |