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

Unified Diff: cc/CCHeadsUpDisplayLayerImpl.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/CCHeadsUpDisplayLayerImpl.cpp
diff --git a/cc/CCHeadsUpDisplayLayerImpl.cpp b/cc/CCHeadsUpDisplayLayerImpl.cpp
index 58a490ef742889811797e996c165f26afed6978d..3ad6bbeb342cc419bc34a643dc91d75b95423a18 100644
--- a/cc/CCHeadsUpDisplayLayerImpl.cpp
+++ b/cc/CCHeadsUpDisplayLayerImpl.cpp
@@ -105,7 +105,7 @@ void CCHeadsUpDisplayLayerImpl::updateHudTexture(CCResourceProvider* resourcePro
SkAutoLockPixels locker(*bitmap);
IntRect layerRect(IntPoint(), bounds());
- ASSERT(bitmap->config() == SkBitmap::kARGB_8888_Config);
+ DCHECK(bitmap->config() == SkBitmap::kARGB_8888_Config);
resourceProvider->upload(m_hudTexture->id(), static_cast<const uint8_t*>(bitmap->getPixels()), layerRect, layerRect, IntSize());
}
@@ -119,7 +119,7 @@ void CCHeadsUpDisplayLayerImpl::didDraw(CCResourceProvider* resourceProvider)
// FIXME: the following assert will not be true when sending resources to a
// parent compositor. We will probably need to hold on to m_hudTexture for
// longer, and have several HUD textures in the pipeline.
- ASSERT(!resourceProvider->inUseByConsumer(m_hudTexture->id()));
+ DCHECK(!resourceProvider->inUseByConsumer(m_hudTexture->id()));
}
void CCHeadsUpDisplayLayerImpl::didLoseContext()

Powered by Google App Engine
This is Rietveld 408576698