Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1039)

Unified Diff: cc/CCTextureLayerImpl.cpp

Issue 11048044: cc: Switch to Chromium DCHECKs and LOGs (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}
« cc/CCCompletionEvent.h ('K') | « cc/CCTextureDrawQuad.cpp ('k') | cc/CCThreadProxy.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698