Index: cc/tiled_layer.cc |
diff --git a/cc/tiled_layer.cc b/cc/tiled_layer.cc |
index cfec53682698f2f7dc163ac3c144e2806e1d959d..7208b9c9c20bb2707db5ad4a28695d949a7de26a 100644 |
--- a/cc/tiled_layer.cc |
+++ b/cc/tiled_layer.cc |
@@ -99,7 +99,7 @@ scoped_ptr<CCLayerImpl> TiledLayerChromium::createCCLayerImpl() |
void TiledLayerChromium::updateTileSizeAndTilingOption() |
{ |
- ASSERT(layerTreeHost()); |
+ CC_DCHECK(layerTreeHost()); |
const IntSize& defaultTileSize = layerTreeHost()->settings().defaultTileSize; |
const IntSize& maxUntiledLayerSize = layerTreeHost()->settings().maxUntiledLayerSize; |
@@ -325,7 +325,7 @@ void TiledLayerChromium::invalidateContentRect(const IntRect& contentRect) |
#else |
UpdatableTile* tile = static_cast<UpdatableTile*>(iter->second.get()); |
#endif |
- ASSERT(tile); |
+ CC_DCHECK(tile); |
// FIXME: This should not ever be null. |
if (!tile) |
continue; |
@@ -395,11 +395,11 @@ void TiledLayerChromium::markOcclusionsAndRequestTextures(int left, int top, int |
for (int j = top; j <= bottom; ++j) { |
for (int i = left; i <= right; ++i) { |
UpdatableTile* tile = tileAt(i, j); |
- ASSERT(tile); // Did setTexturePriorities get skipped? |
+ CC_DCHECK(tile); // Did setTexturePriorities get skipped? |
// FIXME: This should not ever be null. |
if (!tile) |
continue; |
- ASSERT(!tile->occluded); // Did resetUpdateState get skipped? Are we doing more than one occlusion pass? |
+ CC_DCHECK(!tile->occluded); // Did resetUpdateState get skipped? Are we doing more than one occlusion pass? |
IntRect visibleTileRect = intersection(m_tiler->tileBounds(i, j), visibleContentRect()); |
if (occlusion && occlusion->occluded(this, visibleTileRect)) { |
tile->occluded = true; |
@@ -423,7 +423,7 @@ bool TiledLayerChromium::haveTexturesForTiles(int left, int top, int right, int |
for (int j = top; j <= bottom; ++j) { |
for (int i = left; i <= right; ++i) { |
UpdatableTile* tile = tileAt(i, j); |
- ASSERT(tile); // Did setTexturePriorites get skipped? |
+ CC_DCHECK(tile); // Did setTexturePriorites get skipped? |
// FIXME: This should not ever be null. |
if (!tile) |
continue; |
@@ -450,7 +450,7 @@ IntRect TiledLayerChromium::markTilesForUpdate(int left, int top, int right, int |
for (int j = top; j <= bottom; ++j) { |
for (int i = left; i <= right; ++i) { |
UpdatableTile* tile = tileAt(i, j); |
- ASSERT(tile); // Did setTexturePriorites get skipped? |
+ CC_DCHECK(tile); // Did setTexturePriorites get skipped? |
// FIXME: This should not ever be null. |
if (!tile) |
continue; |
@@ -482,7 +482,7 @@ void TiledLayerChromium::updateTileTextures(const IntRect& paintRect, int left, |
for (int j = top; j <= bottom; ++j) { |
for (int i = left; i <= right; ++i) { |
UpdatableTile* tile = tileAt(i, j); |
- ASSERT(tile); // Did setTexturePriorites get skipped? |
+ CC_DCHECK(tile); // Did setTexturePriorites get skipped? |
// FIXME: This should not ever be null. |
if (!tile) |
continue; |
@@ -691,7 +691,7 @@ void TiledLayerChromium::resetUpdateState() |
void TiledLayerChromium::update(CCTextureUpdateQueue& queue, const CCOcclusionTracker* occlusion, CCRenderingStats& stats) |
{ |
- ASSERT(!m_skipsDraw && !m_failedUpdate); // Did resetUpdateState get skipped? |
+ CC_DCHECK(!m_skipsDraw && !m_failedUpdate); // Did resetUpdateState get skipped? |
updateBounds(); |
if (m_tiler->hasEmptyBounds() || !drawsContent()) |
return; |
@@ -778,7 +778,7 @@ bool TiledLayerChromium::needsIdlePaint() |
for (int j = top; j <= bottom; ++j) { |
for (int i = left; i <= right; ++i) { |
UpdatableTile* tile = tileAt(i, j); |
- ASSERT(tile); // Did setTexturePriorities get skipped? |
+ CC_DCHECK(tile); // Did setTexturePriorities get skipped? |
if (!tile) |
continue; |