Index: Source/WebCore/platform/graphics/chromium/cc/CCThreadProxy.cpp |
=================================================================== |
--- Source/WebCore/platform/graphics/chromium/cc/CCThreadProxy.cpp (revision 114977) |
+++ Source/WebCore/platform/graphics/chromium/cc/CCThreadProxy.cpp (working copy) |
@@ -180,6 +180,18 @@ |
return true; |
} |
+void CCThreadProxy::setSurfaceReady() |
+{ |
+ TRACE_EVENT0("cc", "CCThreadProxy::setSurfaceReady"); |
+ CCProxy::implThread()->postTask(createCCThreadTask(this, &CCThreadProxy::setSurfaceReadyOnImplThread)); |
+} |
+ |
+void CCThreadProxy::setSurfaceReadyOnImplThread() |
+{ |
+ TRACE_EVENT0("cc", "CCThreadProxy::setSurfaceReadyOnImplThread"); |
+ m_schedulerOnImplThread->setCanBeginFrame(true); |
+} |
+ |
bool CCThreadProxy::initializeLayerRenderer() |
{ |
TRACE_EVENT("CCThreadProxy::initializeLayerRenderer", this, 0); |
@@ -712,7 +724,6 @@ |
const double displayRefreshInterval = 1.0 / 60.0; |
OwnPtr<CCFrameRateController> frameRateController = adoptPtr(new CCFrameRateController(CCDelayBasedTimeSource::create(displayRefreshInterval, CCProxy::implThread()))); |
m_schedulerOnImplThread = CCScheduler::create(this, frameRateController.release()); |
- m_schedulerOnImplThread->setCanBeginFrame(true); // FIXME: Set this when we actually can begin a frame. |
m_schedulerOnImplThread->setVisible(m_layerTreeHostImpl->visible()); |
m_inputHandlerOnImplThread = CCInputHandler::create(m_layerTreeHostImpl.get()); |