diff options
author | Romain Guy <romainguy@google.com> | 2013-07-16 15:10:04 -0700 |
---|---|---|
committer | Romain Guy <romainguy@google.com> | 2013-07-16 16:25:09 -0700 |
commit | 93c567cddc9354b33f66cb62d514386ac2e052b0 (patch) | |
tree | 115b78096267ee017d88ad64b3ca36b582d2e464 /core/java/android/widget/SimpleAdapter.java | |
parent | d91f8af40b8f9eb8752c432315c619e90d095b6a (diff) | |
download | frameworks_base-93c567cddc9354b33f66cb62d514386ac2e052b0.zip frameworks_base-93c567cddc9354b33f66cb62d514386ac2e052b0.tar.gz frameworks_base-93c567cddc9354b33f66cb62d514386ac2e052b0.tar.bz2 |
Skip unnecessary measurements when possible
This change introduces a new measure cache to View, to remember
the measured dimensions for previous pairs of measure specs. The
measure cache is cleared whenever a View requests layout.
Unfortunately some Views rely on measure being always called when
layout is invoked. To work around this problem, we need to remember
when we hit the measure cache to force a call to measure just prior
to calling onLayout(). This does not completely removes all measure
calls but enough to optimize a number of layouts.
Change-Id: Ie085fbcf186e9d7505e1127e0786a12968ebc344
Diffstat (limited to 'core/java/android/widget/SimpleAdapter.java')
0 files changed, 0 insertions, 0 deletions