diff options
author | Chet Haase <chet@google.com> | 2012-10-10 15:41:57 -0700 |
---|---|---|
committer | Chet Haase <chet@google.com> | 2012-10-10 16:33:31 -0700 |
commit | c61d70ec46bc44344a419a0a15ccbecd1f8f1a2d (patch) | |
tree | 513bf8459deb57013720c5faebf00dd05be9fc2c /graphics/java/android/renderscript/ScriptGroup.java | |
parent | f6138f0720e678f236fe8c442a7660a955da9d10 (diff) |
Cache wallpaper bitmap to avoid re-loading on rotation
Screen rotations force static wallpapers to get recreated. One of the things
that happens is that the underlying bitmap resource is loaded. This can be quite
expensive for large bitmaps (which is the case on large-display devices).
A simple optimization is to retain the bitmap in the wallpaper process, to avoid
this re-loading step. We still re-draw and re-upload the texture, but at least
we don't re-load the thing.
Issue #7324823 Manta wallpaper decode performance is atrocious
Change-Id: I0748e275a55992d13704a7dec5910d2dbdc9e2a4
Diffstat (limited to 'graphics/java/android/renderscript/ScriptGroup.java')
0 files changed, 0 insertions, 0 deletions