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

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: Address reviewer comments. 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 faa66957d219bde5449c7654b2d6cfd41c2fc149..602f7f9f90ddb75a87dacd0e57332003e54d40b9 100644
--- a/cc/thread_proxy.cc
+++ b/cc/thread_proxy.cc
@@ -1040,7 +1040,9 @@ void ThreadProxy::initializeRendererOnImplThread(CompletionEvent* completion, bo
m_schedulerOnImplThread->setSwapBuffersCompleteSupported(
capabilities->using_swap_complete_callback);
- int maxFramesPending = FrameRateController::kDefaultMaxFramesPending;
+ int maxFramesPending = m_layerTreeHostImpl->outputSurface()->capabilities().max_frames_pending;
DaveMoore 2013/03/13 17:49:06 Nit: Line length
jonathan.backer 2013/03/13 18:00:25 cc is a mix of WK and Cr style (currently being sc
+ if (maxFramesPending <= 0)
+ maxFramesPending = FrameRateController::kDefaultMaxFramesPending;
if (m_layerTreeHostImpl->outputSurface()->capabilities().has_parent_compositor)
maxFramesPending = 1;
m_schedulerOnImplThread->setMaxFramesPending(maxFramesPending);

Powered by Google App Engine
This is Rietveld 408576698