Merge "Change storage duration to static for native choreographer."
This commit is contained in:
@@ -82,7 +82,7 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
thread_local Choreographer* gChoreographer;
|
static thread_local Choreographer* gChoreographer;
|
||||||
Choreographer* Choreographer::getForThread() {
|
Choreographer* Choreographer::getForThread() {
|
||||||
if (gChoreographer == nullptr) {
|
if (gChoreographer == nullptr) {
|
||||||
sp<Looper> looper = Looper::getForThread();
|
sp<Looper> looper = Looper::getForThread();
|
||||||
|
|||||||
Reference in New Issue
Block a user