diff options
| author | 2010-10-27 13:18:54 -0700 | |
|---|---|---|
| committer | 2010-10-27 13:48:02 -0700 | |
| commit | e3bc4e6f102fbef760fe0a59dd807363571b0867 (patch) | |
| tree | 23f2cfa012e4632f4ac70ba235f1601c4d9dbf4a /libs/hwui/ProgramCache.cpp | |
| parent | 9440083be22ec13e252aa347e654911d33e50086 (diff) | |
Use ThreadLocal for static Animator variables.
Certain fields in Animator are statics, like the list of current animations and the
main handler. However, since there may be >1 UI thread per process, these should really
be ThreadLocal variables, so that they are local to each UI thread. For example,
most animators will cause an invalidation in the view hierarchy, which can only
happen in the UI thread for that view.
Change-Id: I42be61c781ffac97b527f78ce1ffc2e0cdc42999
Diffstat (limited to 'libs/hwui/ProgramCache.cpp')
0 files changed, 0 insertions, 0 deletions