summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread/DrawFrameTask.cpp
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2014-07-23 14:54:04 -0700
committerJohn Reck <jreck@google.com>2014-07-23 22:28:44 +0000
commit73b7a4db4116774156fda3a510cc3afa14be9ffd (patch)
tree928ca1b91bd9e5e8d88ce58069a6d0027d37f965 /libs/hwui/renderthread/DrawFrameTask.cpp
parentdf8f55948a20a0f1673274ea904eeaf8031c7d57 (diff)
Dump RenderThread stack on unresponsive
Bug: 16408405 Change-Id: I4ba4836fd1451fb8ba77c34cdb843d3cb4217bb8
Diffstat (limited to 'libs/hwui/renderthread/DrawFrameTask.cpp')
-rw-r--r--libs/hwui/renderthread/DrawFrameTask.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/libs/hwui/renderthread/DrawFrameTask.cpp b/libs/hwui/renderthread/DrawFrameTask.cpp
index dd34e095738d..763e72747e83 100644
--- a/libs/hwui/renderthread/DrawFrameTask.cpp
+++ b/libs/hwui/renderthread/DrawFrameTask.cpp
@@ -85,8 +85,7 @@ int DrawFrameTask::drawFrame(nsecs_t frameTimeNanos, nsecs_t recordDurationNanos
void DrawFrameTask::postAndWait() {
AutoMutex _lock(mLock);
- mRenderThread->queue(this);
- mSignal.wait(mLock);
+ mRenderThread->queueAndWait(this, mSignal, mLock);
}
void DrawFrameTask::run() {