summaryrefslogtreecommitdiff
path: root/native
diff options
context:
space:
mode:
author Michael Wright <michaelwr@google.com> 2016-01-26 16:03:25 -0800
committer Michael Wright <michaelwr@google.com> 2016-01-26 16:03:25 -0800
commitff20b979e7abf55bef4aa7da85ec36afda3e4fbf (patch)
tree90f5f2058a9301e65b636ff7cc0c4674cc5bab51 /native
parentc9fd313f94f7e0dc1f1f865290a2eb1b1897d2ad (diff)
Change storage duration to static for native choreographer.
This ensures that the region is zero initialized, regardless of compiler. Change-Id: Ie0bfa5d2cd2486ba31a45aee4de6c370513bfc62
Diffstat (limited to 'native')
-rw-r--r--native/android/choreographer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/native/android/choreographer.cpp b/native/android/choreographer.cpp
index cc2fd7758787..e35c85b883e8 100644
--- a/native/android/choreographer.cpp
+++ b/native/android/choreographer.cpp
@@ -82,7 +82,7 @@ private:
};
-thread_local Choreographer* gChoreographer;
+static thread_local Choreographer* gChoreographer;
Choreographer* Choreographer::getForThread() {
if (gChoreographer == nullptr) {
sp<Looper> looper = Looper::getForThread();