Merge "Add missing assert that task isn't queued"
This commit is contained in:
committed by
Android (Google) Code Review
commit
2c6ac0ead0
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user