summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2011-06-09 19:05:15 -0700
committerJeff Brown <jeffbrown@google.com>2011-06-10 18:13:30 -0700
commit24572375323dee79e3b456af07640ca194fd40bf (patch)
tree0a8923e3213aeb18d385e2c7eb2816d7698be49e /graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
parent0a2f6640defa14b1bf1753ee2faf7e3d32c259f0 (diff)
Optimize orientation changes.
Modified setRotation to allow it to restart a rotation in progress as long as the rotation animation has not yet started. This enables the system to recover more quickly from mispredicted orientation changes. Removed the call to System.gc() when freezing the display, which added 60-80ms before we even started the orientation change. We used to need this to make it less likely that an upcoming GC would cause a pause during the window animation, but this is not longer a concern with the concurrent GC in place. Changed the wallpaper surface to be 32bit. This accelerates drawing and improves the overall appearance slightly. Reduced code duplication in the WallpaperManager. Change-Id: Ic6e5e8bdce4b970b11badddd0355baaed40df88a
Diffstat (limited to 'graphics/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions