Index: cc/tiles/tile_manager.cc |
diff --git a/cc/tiles/tile_manager.cc b/cc/tiles/tile_manager.cc |
index f4d8fc5fbaddf63e8c89a2c235b4af1e9949367c..4f798ff3a3ee5e5ba42af108a5b197614101e988 100644 |
--- a/cc/tiles/tile_manager.cc |
+++ b/cc/tiles/tile_manager.cc |
@@ -162,6 +162,8 @@ void InsertNodeForDecodeTask(TaskGraph* graph, |
if (task->dependencies().size()) { |
prashant.n
2016/04/21 12:19:34
ericrk@, should we create a node for imageuploadta
|
DCHECK_EQ(task->dependencies().size(), 1u); |
auto* dependency = task->dependencies()[0].get(); |
+ DCHECK(dependency) |
+ << "Task |dependencies_| should hold valid dependencies."; |
if (!dependency->HasCompleted()) { |
InsertNodeForDecodeTask(graph, dependency, category, priority); |
graph->edges.push_back(TaskGraph::Edge(dependency, task)); |