summaryrefslogtreecommitdiff
path: root/libs/rs/rsProgram.cpp
diff options
context:
space:
mode:
author Bjorn Bringert <bringert@android.com> 2009-07-16 13:30:27 +0100
committer Bjorn Bringert <bringert@android.com> 2009-07-16 13:57:20 +0100
commit391eaa3ba8c9883c9c0d6bf3b5ab742c9cb38594 (patch)
tree39bb807daea96012877954fae4ed5cff032ed3da /libs/rs/rsProgram.cpp
parentc93af6dc5bc78f02d4ee549890da12dc669fc2fe (diff)
Get rid of drawing hacks for search dialog suggestions
Before, SuggestionsAdapter parsed every HTML formatted string three times, to support state-dependent colors in <font> tags. Now that there is support in Html for color resources (added in https://android-git.corp.google.com/g/7441), we can get rid of this code. Also, SuggestionsAdapter had a special purpose view for drawing background colors when suggestion items were not selected or pressed. This change replaces that code with a StateListDrawable of ColorDrawables. Before this change, HTML parsing used ~17% (uncontrolled benchmark, just did some random searching) of the system_process CPU. This change should reduce that by 2/3, i.e. about ~11% total system_process reduction.
Diffstat (limited to 'libs/rs/rsProgram.cpp')
0 files changed, 0 insertions, 0 deletions