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() |