OSDN Git Service
(root)
/
android-x86
/
frameworks-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63c168a
)
Change storage duration to static for native choreographer.
author
Michael Wright
<michaelwr@google.com>
Wed, 27 Jan 2016 00:03:25 +0000
(16:03 -0800)
committer
Martijn Coenen
<maco@google.com>
Thu, 14 Apr 2016 08:18:09 +0000
(10:18 +0200)
This ensures that the region is zero initialized, regardless of compiler.
Change-Id: Ie0bfa5d2cd2486ba31a45aee4de6c370513bfc62
native/android/choreographer.cpp
patch
|
blob
|
history
diff --git
a/native/android/choreographer.cpp
b/native/android/choreographer.cpp
index
cc2fd77
..
e35c85b
100644
(file)
--- 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();