Index: cc/thread_proxy.cc |
diff --git a/cc/thread_proxy.cc b/cc/thread_proxy.cc |
index f738f8f213cb133ae84a92192d2f87e7a664be99..dc2404c254ef98296fb4eff8b7b88b6bf97767b4 100644 |
--- a/cc/thread_proxy.cc |
+++ b/cc/thread_proxy.cc |
@@ -9,6 +9,7 @@ |
#include "CCDelayBasedTimeSource.h" |
#include "CCDrawQuad.h" |
#include "CCFrameRateController.h" |
+#include "CCFrameRateCounter.h" |
#include "CCGraphicsContext.h" |
#include "CCInputHandler.h" |
#include "CCLayerTreeHost.h" |
@@ -318,6 +319,7 @@ void CCThreadProxy::onVSyncParametersChanged(double monotonicTimebase, double in |
base::TimeTicks timebase = base::TimeTicks::FromInternalValue(monotonicTimebase * base::Time::kMicrosecondsPerSecond); |
base::TimeDelta interval = base::TimeDelta::FromMicroseconds(intervalInSeconds * base::Time::kMicrosecondsPerSecond); |
m_schedulerOnImplThread->setTimebaseAndInterval(timebase, interval); |
+ m_layerTreeHostImpl->fpsCounter()->setTimebaseAndInterval(timebase, interval); |
} |
void CCThreadProxy::onCanDrawStateChanged(bool canDraw) |
@@ -899,6 +901,7 @@ void CCThreadProxy::initializeRendererOnImplThread(CCCompletionEvent* completion |
*capabilities = m_layerTreeHostImpl->rendererCapabilities(); |
m_schedulerOnImplThread->setSwapBuffersCompleteSupported( |
capabilities->usingSwapCompleteCallback); |
+ onVSyncParametersChanged(0, 1/60.0); |
} |
completion->signal(); |