Index: cc/layers/tiled_layer_impl.cc |
diff --git a/cc/layers/tiled_layer_impl.cc b/cc/layers/tiled_layer_impl.cc |
index c68d9f29a784acf49809bc67c677fbfbdd38a7a2..5b932ca9f9b3985453f3135c736d31196107b4ff 100644 |
--- a/cc/layers/tiled_layer_impl.cc |
+++ b/cc/layers/tiled_layer_impl.cc |
@@ -112,7 +112,8 @@ size_t TiledLayerImpl::GPUMemoryUsageInBytes() const { |
iter != tiler_->tiles().end(); |
++iter) { |
const DrawableTile* tile = static_cast<DrawableTile*>(iter->second); |
- if (!tile || !tile->resource_id()) |
+ DCHECK(tile); |
+ if (!tile->resource_id()) |
continue; |
amount += kMemoryUsagePerTileInBytes; |
} |
@@ -133,7 +134,7 @@ void TiledLayerImpl::PushPropertiesTo(LayerImpl* layer) { |
int i = iter->first.first; |
int j = iter->first.second; |
DrawableTile* tile = static_cast<DrawableTile*>(iter->second); |
- |
+ DCHECK(tile); |
tiled_layer->PushTileProperties(i, |
j, |
tile->resource_id(), |