summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2020-07-18 02:58:58 +0000
committerWinson Chung <winsonc@google.com>2020-07-20 13:22:50 -0700
commit99fbbf87172182e330047da4c3ab796219b1dc9a (patch)
tree8383c3b60765ed17dc1bc6b38213c934d53fe6a7 /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parent469a3084b77d506460ec3a0c070e1a32f5c878eb (diff)
Reduce usages of ContextThemeWrapper causing memory churn
- Cache light/dark icon colors so we don't have to create additional theme wrappers when updating them - Convert rotation styles to separate drawables so we can skip creating theme wrappers just to change some attributes of the drawable, these icons are not changed much so it's worth the memory savings even if this introduces copies of the drawable - Clean up floating rotation drawable initialization slightly, only create when updating the icon, and only start the animation when showing the drawable - Removed some unused code Bug: 157510126 Test: atest SystemUiTests Test: Verify rotation icon looks the same in all orientations with both three button and gestural, and also with light/dark nav bar Signed-off-by: Winson Chung <winsonc@google.com> Change-Id: I31e89f7aef00b38f2a7953d6e229c9ed7df8b479
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions