Index: cc/CCLayerTreeHost.cpp |
diff --git a/cc/CCLayerTreeHost.cpp b/cc/CCLayerTreeHost.cpp |
index 50f227a0d6d476350331fc74787b3e6fefaf34a3..08e1141c7cc72d1a6a69214d0da8ae86fb29c65c 100644 |
--- a/cc/CCLayerTreeHost.cpp |
+++ b/cc/CCLayerTreeHost.cpp |
@@ -394,11 +394,18 @@ void CCLayerTreeHost::setVisible(bool visible) |
m_proxy->setVisible(visible); |
} |
-void CCLayerTreeHost::evictAllContentTextures() |
+void CCLayerTreeHost::unlinkAllContentTextures() |
{ |
ASSERT(CCProxy::isMainThread()); |
ASSERT(m_contentsTextureManager.get()); |
- m_contentsTextureManager->allBackingTexturesWereDeleted(); |
+ m_contentsTextureManager->unlinkAllBackings(); |
+} |
+ |
+void CCLayerTreeHost::deleteUnlinkedTextures() |
+{ |
+ ASSERT(CCProxy::isImplThread() && CCProxy::isMainThreadBlocked()); |
+ ASSERT(m_contentsTextureManager.get()); |
+ m_contentsTextureManager->deleteAllUnlinkedBackings(); |
} |
void CCLayerTreeHost::startPageScaleAnimation(const IntSize& targetPosition, bool useAnchor, float scale, double durationSec) |