Index: Source/WebCore/platform/graphics/chromium/cc/CCThreadProxy.cpp |
=================================================================== |
--- Source/WebCore/platform/graphics/chromium/cc/CCThreadProxy.cpp (revision 122256) |
+++ Source/WebCore/platform/graphics/chromium/cc/CCThreadProxy.cpp (working copy) |
@@ -103,7 +103,7 @@ |
ASSERT(isMainThread()); |
ASSERT(m_layerTreeHost); |
- if (!m_layerRendererInitialized) { |
+ if (!m_layerTreeHost->initializeLayerRendererIfNeeded()) { |
TRACE_EVENT("compositeAndReadback_EarlyOut_LR_Uninitialized", this, 0); |
return false; |
} |
@@ -509,9 +509,11 @@ |
m_commitRequested = false; |
m_forcedCommitRequested = false; |
- if (!m_layerTreeHost->updateLayers(*request->updater)) |
+ if (!m_layerTreeHost->initializeLayerRendererIfNeeded()) |
return; |
+ m_layerTreeHost->updateLayers(*request->updater); |
+ |
// Once single buffered layers are committed, they cannot be modified until |
// they are drawn by the impl thread. |
m_texturesAcquired = false; |