diff options
author | John Reck <jreck@google.com> | 2015-07-09 17:37:34 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2015-07-09 17:40:41 -0700 |
commit | b7ba1220a3dc3012d2e22825eaeb0e643333f5a4 (patch) | |
tree | ab3d320793ed3a3f268a955b88630cb988a575f7 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 171fe6ac0aa5b0d2dd64ac1cdda25cdcb5f183f3 (diff) |
Teach ImageView to recycle internal drawables
Bug: 22289362
It's pretty common for ImageView#setBitmap to be called
repeatedly. Avoid re-creating the BitmapDrawable in this scenario
as that has high object churn of semi-expensive objects like
Paint.
Change-Id: Ib77719cd0366d02c1a42f774850bf3b9caa9c288
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions