Index: cc/heads_up_display_layer_impl.cc |
diff --git a/cc/heads_up_display_layer_impl.cc b/cc/heads_up_display_layer_impl.cc |
index 4b64b1aa00ab261b4a7e227db29ff275c08bb43c..4aa29cf0e2bf3aa2ccdfc57eb4c61587244a6b19 100644 |
--- a/cc/heads_up_display_layer_impl.cc |
+++ b/cc/heads_up_display_layer_impl.cc |
@@ -105,7 +105,7 @@ void CCHeadsUpDisplayLayerImpl::updateHudTexture(CCResourceProvider* resourcePro |
SkAutoLockPixels locker(*bitmap); |
IntRect layerRect(IntPoint(), bounds()); |
- ASSERT(bitmap->config() == SkBitmap::kARGB_8888_Config); |
+ CC_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())); |
+ CC_DCHECK(!resourceProvider->inUseByConsumer(m_hudTexture->id())); |
} |
void CCHeadsUpDisplayLayerImpl::didLoseContext() |