summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread/DrawFrameTask.cpp
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2017-10-23 13:10:41 -0700
committerJohn Reck <jreck@google.com>2017-10-27 13:39:55 -0700
commitf8441e65526cd1721f1ad77dad21b1a1e2743d76 (patch)
treea783f7ce274943c1fc919ba746662b962738af42 /libs/hwui/renderthread/DrawFrameTask.cpp
parent68533018e748ae7fa881cdb933ec18f9273cfc1e (diff)
Switch to a fancy new queue
Test: unit tests & benchmarks pass/faster Change-Id: I9521432172d6dd6039c5280b1265479a36a86247
Diffstat (limited to 'libs/hwui/renderthread/DrawFrameTask.cpp')
-rw-r--r--libs/hwui/renderthread/DrawFrameTask.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/renderthread/DrawFrameTask.cpp b/libs/hwui/renderthread/DrawFrameTask.cpp
index a097272df359..0a94678a5c83 100644
--- a/libs/hwui/renderthread/DrawFrameTask.cpp
+++ b/libs/hwui/renderthread/DrawFrameTask.cpp
@@ -78,7 +78,7 @@ int DrawFrameTask::drawFrame() {
void DrawFrameTask::postAndWait() {
AutoMutex _lock(mLock);
- mRenderThread->queue(this);
+ mRenderThread->queue().post([this]() { run(); });
mSignal.wait(mLock);
}