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

Unified Diff: cc/trees/layer_tree_host_client.h

Issue 53153006: Simplify rate limiting since it's main thread shared context only (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comment Created 7 years, 1 month 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') | content/renderer/gpu/render_widget_compositor.h » ('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 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() {}
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | content/renderer/gpu/render_widget_compositor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698