Chromium Code Reviews| 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); |