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

Unified Diff: cc/thread_proxy.cc

Issue 11747002: cc: Set the max frames pending from the thread proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 12 months 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
« cc/layer_tree_host_unittest.cc ('K') | « cc/thread_proxy.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/thread_proxy.cc
diff --git a/cc/thread_proxy.cc b/cc/thread_proxy.cc
index b7e0e7c405e9c5518d600b6b875f37ab72fbabca..173b2fc4ef0c936273c1958992bd0a71f82a1578 100644
--- a/cc/thread_proxy.cc
+++ b/cc/thread_proxy.cc
@@ -938,6 +938,11 @@ void ThreadProxy::initializeRendererOnImplThread(CompletionEvent* completion, bo
capabilities->usingSwapCompleteCallback);
}
+ int maxFramesPending = FrameRateController::defaultMaxFramesPending;
+ if (m_layerTreeHostImpl->outputSurface()->Capabilities().has_parent_compositor)
+ maxFramesPending = 1;
+ m_schedulerOnImplThread->setMaxFramesPending(maxFramesPending);
+
completion->signal();
}
« cc/layer_tree_host_unittest.cc ('K') | « cc/thread_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698