Index: Source/WebCore/platform/graphics/chromium/cc/CCThreadProxy.cpp |
=================================================================== |
--- Source/WebCore/platform/graphics/chromium/cc/CCThreadProxy.cpp (revision 119174) |
+++ Source/WebCore/platform/graphics/chromium/cc/CCThreadProxy.cpp (working copy) |
@@ -74,7 +74,6 @@ |
, m_mainThreadProxy(CCScopedThreadProxy::create(CCProxy::mainThread())) |
, m_beginFrameCompletionEventOnImplThread(0) |
, m_readbackRequestOnImplThread(0) |
- , m_finishAllRenderingCompletionEventOnImplThread(0) |
, m_commitCompletionEventOnImplThread(0) |
, m_textureAcquisitionCompletionEventOnImplThread(0) |
, m_nextFrameIsNewlyCommittedFrameOnImplThread(false) |
@@ -420,10 +419,8 @@ |
{ |
TRACE_EVENT("CCThreadProxy::finishAllRenderingOnImplThread", this, 0); |
ASSERT(isImplThread()); |
- ASSERT(!m_finishAllRenderingCompletionEventOnImplThread); |
- m_finishAllRenderingCompletionEventOnImplThread = completion; |
- |
- m_schedulerOnImplThread->setNeedsForcedRedraw(); |
+ m_layerTreeHostImpl->finishAllRendering(); |
+ completion->signal(); |
} |
void CCThreadProxy::forceBeginFrameOnImplThread(CCCompletionEvent* completion) |
@@ -652,13 +649,6 @@ |
if (drawFrame) |
result.didSwap = m_layerTreeHostImpl->swapBuffers(); |
- // Process any finish request |
- if (m_finishAllRenderingCompletionEventOnImplThread) { |
- m_layerTreeHostImpl->finishAllRendering(); |
- m_finishAllRenderingCompletionEventOnImplThread->signal(); |
- m_finishAllRenderingCompletionEventOnImplThread = 0; |
- } |
- |
// Tell the main thread that the the newly-commited frame was drawn. |
if (m_nextFrameIsNewlyCommittedFrameOnImplThread) { |
m_nextFrameIsNewlyCommittedFrameOnImplThread = false; |