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

Unified Diff: cc/thread_proxy.cc

Issue 12540003: CrOS: Set max frames pending for UI from command line. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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
Index: cc/thread_proxy.cc
diff --git a/cc/thread_proxy.cc b/cc/thread_proxy.cc
index 8c4adc332dc38c9f09c033dc6cc89fcc8ebb8ecb..e848ef1bb789ff8d2755511a80857ef9abf02ad6 100644
--- a/cc/thread_proxy.cc
+++ b/cc/thread_proxy.cc
@@ -1040,9 +1040,10 @@ void ThreadProxy::initializeRendererOnImplThread(CompletionEvent* completion, bo
m_schedulerOnImplThread->setSwapBuffersCompleteSupported(
capabilities->usingSwapCompleteCallback);
- int maxFramesPending = FrameRateController::kDefaultMaxFramesPending;
- if (m_layerTreeHostImpl->outputSurface()->capabilities().has_parent_compositor)
- maxFramesPending = 1;
+ int maxFramesPending = m_layerTreeHostImpl->outputSurface()->capabilities().max_frames_pending;
+ if (maxFramesPending <= 0)
+ maxFramesPending = FrameRateController::kDefaultMaxFramesPending;
+
m_schedulerOnImplThread->setMaxFramesPending(maxFramesPending);
}

Powered by Google App Engine
This is Rietveld 408576698