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

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: DCHECK_GE Created 7 years, 11 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
« no previous file with comments | « 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 2618400e9892c986af41d146b1cbfe0d694235b1..edf1abdd9ff6bae2f629f971edda759bafa4ca6a 100644
--- a/cc/thread_proxy.cc
+++ b/cc/thread_proxy.cc
@@ -946,6 +946,11 @@ void ThreadProxy::initializeRendererOnImplThread(CompletionEvent* completion, bo
*capabilities = m_layerTreeHostImpl->rendererCapabilities();
m_schedulerOnImplThread->setSwapBuffersCompleteSupported(
capabilities->usingSwapCompleteCallback);
+
+ int maxFramesPending = FrameRateController::kDefaultMaxFramesPending;
+ if (m_layerTreeHostImpl->outputSurface()->Capabilities().has_parent_compositor)
+ maxFramesPending = 1;
+ m_schedulerOnImplThread->setMaxFramesPending(maxFramesPending);
}
completion->signal();
« no previous file with comments | « cc/thread_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698