Merge "Add missing assert that task isn't queued"

This commit is contained in:
TreeHugger Robot
2017-03-28 00:41:08 +00:00
committed by Android (Google) Code Review

View File

@@ -98,6 +98,7 @@ void TaskQueue::queue(RenderTask* task) {
}
void TaskQueue::queueAtFront(RenderTask* task) {
LOG_ALWAYS_FATAL_IF(task->mNext || mHead == task, "Task is already in the queue!");
if (mTail) {
task->mNext = mHead;
mHead = task;