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..c6a46b80ec7e99b89efa0789ff77da7b7522e82a 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); |
+ 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() |