summaryrefslogtreecommitdiffstats
path: root/cc/texture_layer_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cc/texture_layer_impl.cc')
-rw-r--r--cc/texture_layer_impl.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/cc/texture_layer_impl.cc b/cc/texture_layer_impl.cc
index 4c81709..bb92ed8 100644
--- a/cc/texture_layer_impl.cc
+++ b/cc/texture_layer_impl.cc
@@ -31,7 +31,7 @@ void CCTextureLayerImpl::willDraw(CCResourceProvider* resourceProvider)
{
if (!m_textureId)
return;
- ASSERT(!m_externalTextureResource);
+ DCHECK(!m_externalTextureResource);
m_externalTextureResource = resourceProvider->createResourceFromExternalTexture(m_textureId);
}
@@ -54,7 +54,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;
}