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

Unified Diff: cc/trees/single_thread_proxy.cc

Issue 811523002: Added ability to dynamically toggle frame throttling in the scheduler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.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
Index: cc/trees/single_thread_proxy.cc
diff --git a/cc/trees/single_thread_proxy.cc b/cc/trees/single_thread_proxy.cc
index 6498f0e0996ce49b310eb9a1c7a5d83bcfbfe4df..1622a304e85efff73848a0c0340db7ce48911d90 100644
--- a/cc/trees/single_thread_proxy.cc
+++ b/cc/trees/single_thread_proxy.cc
@@ -112,6 +112,14 @@ void SingleThreadProxy::SetVisible(bool visible) {
// Changing visibility could change ShouldComposite().
}
+void SingleThreadProxy::SetThrottleFrameProduction(bool throttle) {
+ TRACE_EVENT1("cc", "SingleThreadProxy::SetThrottleFrameProduction",
+ "throttle", throttle);
+ DebugScopedSetImplThread impl(this);
+ if (scheduler_on_impl_thread_)
+ scheduler_on_impl_thread_->SetThrottleFrameProduction(throttle);
+}
+
void SingleThreadProxy::RequestNewOutputSurface() {
DCHECK(Proxy::IsMainThread());
DCHECK(layer_tree_host_->output_surface_lost());

Powered by Google App Engine
This is Rietveld 408576698