| Index: cc/single_thread_proxy.cc
|
| diff --git a/cc/single_thread_proxy.cc b/cc/single_thread_proxy.cc
|
| index e9ac8e79f92d44d744be6fe5bf9e20e12927982a..de27220be4c98a8e86e6970cb610d47bf9234b2c 100644
|
| --- a/cc/single_thread_proxy.cc
|
| +++ b/cc/single_thread_proxy.cc
|
| @@ -7,6 +7,7 @@
|
| #include "CCSingleThreadProxy.h"
|
|
|
| #include "CCDrawQuad.h"
|
| +#include "CCFrameRateCounter.h"
|
| #include "CCGraphicsContext.h"
|
| #include "CCLayerTreeHost.h"
|
| #include "CCTextureUpdateController.h"
|
| @@ -117,6 +118,7 @@ bool CCSingleThreadProxy::initializeRenderer()
|
| if (ok) {
|
| m_rendererInitialized = true;
|
| m_RendererCapabilitiesForMainThread = m_layerTreeHostImpl->rendererCapabilities();
|
| + onVSyncParametersChanged(0, 1.0/60.0);
|
| }
|
|
|
| return ok;
|
| @@ -310,6 +312,14 @@ void CCSingleThreadProxy::onSwapBuffersCompleteOnImplThread()
|
| ASSERT_NOT_REACHED();
|
| }
|
|
|
| +void CCSingleThreadProxy::onVSyncParametersChanged(double monotonicTimebase, double intervalInSeconds)
|
| +{
|
| + TRACE_EVENT2("cc", "CCSingleThreadProxy::onVSyncParametersChanged", "monotonicTimebase", monotonicTimebase, "intervalInSeconds", intervalInSeconds);
|
| + base::TimeTicks timebase = base::TimeTicks::FromInternalValue(monotonicTimebase * base::Time::kMicrosecondsPerSecond);
|
| + base::TimeDelta interval = base::TimeDelta::FromMicroseconds(intervalInSeconds * base::Time::kMicrosecondsPerSecond);
|
| + m_layerTreeHostImpl->fpsCounter()->setTimebaseAndInterval(timebase, interval);
|
| +}
|
| +
|
| bool CCSingleThreadProxy::commitAndComposite()
|
| {
|
| ASSERT(CCProxy::isMainThread());
|
|
|