summaryrefslogtreecommitdiff
path: root/native/android/choreographer.cpp
diff options
context:
space:
mode:
authorMichael Wright <michaelwr@google.com>2016-01-26 16:03:25 -0800
committerMartijn Coenen <maco@google.com>2016-04-14 10:18:09 +0200
commitc0d3d3f80588c1bef5acd7d56ae701ac7271c7c6 (patch)
tree8d5f77a32fa24e36cab672fcf4a0cc02725c7018 /native/android/choreographer.cpp
parent63c168acf7a99a0120566a0a09a40ae04c789c5a (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/android/choreographer.cpp')
-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();