summaryrefslogtreecommitdiff
path: root/libs/hwui/thread
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2019-02-14 16:26:08 -0800
committerJohn Reck <jreck@google.com>2019-02-14 16:26:08 -0800
commit352e9f0b7a60e9f8ee9a8adc767bca1a944a12c2 (patch)
tree4211c01038a84ef390bd96af546d7b4b6b35f591 /libs/hwui/thread
parentac4bccb2ad482260d3fff9c4b84d240484329b45 (diff)
Add missing Looper::setForThread
Unlike the Java Looper the native one requires manually setting of the looper for a particular thread. So... do that. Fixes: 124467483 Test: really good guess Change-Id: Iac9b4a052e79228aea5760262996729d8dadb1b8
Diffstat (limited to 'libs/hwui/thread')
-rw-r--r--libs/hwui/thread/ThreadBase.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/hwui/thread/ThreadBase.h b/libs/hwui/thread/ThreadBase.h
index 8cdcc46b97fb..0289d3fd2ef7 100644
--- a/libs/hwui/thread/ThreadBase.h
+++ b/libs/hwui/thread/ThreadBase.h
@@ -68,10 +68,12 @@ protected:
void processQueue() { mQueue.process(); }
virtual bool threadLoop() override {
+ Looper::setForThread(mLooper);
while (!exitPending()) {
waitForWork();
processQueue();
}
+ Looper::setForThread(nullptr);
return false;
}