| 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);
|
| }
|
|
|
|
|