Index: cc/CCTextureLayerImpl.cpp |
diff --git a/cc/CCTextureLayerImpl.cpp b/cc/CCTextureLayerImpl.cpp |
index 441265fef1b405b88ddf74816c69ded610bd11e2..8098ff35fed67936712196469213ced8afbf0e59 100644 |
--- a/cc/CCTextureLayerImpl.cpp |
+++ b/cc/CCTextureLayerImpl.cpp |
@@ -33,7 +33,7 @@ void CCTextureLayerImpl::willDraw(CCResourceProvider* resourceProvider) |
{ |
if (!m_textureId) |
return; |
- ASSERT(!m_externalTextureResource); |
+ DCHECK(!m_externalTextureResource); |
m_externalTextureResource = resourceProvider->createResourceFromExternalTexture(m_textureId); |
} |
@@ -56,7 +56,7 @@ void CCTextureLayerImpl::didDraw(CCResourceProvider* resourceProvider) |
// FIXME: the following assert will not be true when sending resources to a |
// parent compositor. A synchronization scheme (double-buffering or |
// pipelining of updates) for the client will need to exist to solve this. |
- ASSERT(!resourceProvider->inUseByConsumer(m_externalTextureResource)); |
+ DCHECK(!resourceProvider->inUseByConsumer(m_externalTextureResource)); |
resourceProvider->deleteResource(m_externalTextureResource); |
m_externalTextureResource = 0; |
} |