summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread/RenderThread.cpp
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2017-03-27 14:34:28 -0700
committerJohn Reck <jreck@google.com>2017-03-27 21:38:09 +0000
commit2f944482ece3aba2068ac71cd9c5067e4bc8424c (patch)
tree1a603ac13c0fadc45b630348de25691ca6f7bd67 /libs/hwui/renderthread/RenderThread.cpp
parent48a153e57032fccf9ea7dac728d60738c3c848d2 (diff)
Add missing assert that task isn't queued
Probably won't fix anything but this assert is in queue() but not queueAtFront() and inserting a task twice is Really Bad. Bug: 36139852 Test: ¯\_(ツ)_/¯ Change-Id: Ida0f829eecfdd46c17c36b816528c49d12b7cf29
Diffstat (limited to 'libs/hwui/renderthread/RenderThread.cpp')
-rw-r--r--libs/hwui/renderthread/RenderThread.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/hwui/renderthread/RenderThread.cpp b/libs/hwui/renderthread/RenderThread.cpp
index e32fd63e1125..1450ec98dabf 100644
--- a/libs/hwui/renderthread/RenderThread.cpp
+++ b/libs/hwui/renderthread/RenderThread.cpp
@@ -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;