Index: cc/thread_proxy.cc |
=================================================================== |
--- cc/thread_proxy.cc (revision 186868) |
+++ cc/thread_proxy.cc (working copy) |
@@ -1027,7 +1027,9 @@ |
m_schedulerOnImplThread->setSwapBuffersCompleteSupported( |
capabilities->usingSwapCompleteCallback); |
- int maxFramesPending = FrameRateController::kDefaultMaxFramesPending; |
+ int maxFramesPending = m_layerTreeHostImpl->outputSurface()->Capabilities().max_frames_pending; |
+ if (maxFramesPending <= 0) |
+ maxFramesPending = FrameRateController::kDefaultMaxFramesPending; |
if (m_layerTreeHostImpl->outputSurface()->Capabilities().has_parent_compositor) |
maxFramesPending = 1; |
m_schedulerOnImplThread->setMaxFramesPending(maxFramesPending); |