summaryrefslogtreecommitdiffstats
path: root/core/java/android/service/wallpaper
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 /core/java/android/service/wallpaper
parent0a2f6640defa14b1bf1753ee2faf7e3d32c259f0 (diff)
downloadframeworks_base-24572375323dee79e3b456af07640ca194fd40bf.zip
frameworks_base-24572375323dee79e3b456af07640ca194fd40bf.tar.gz
frameworks_base-24572375323dee79e3b456af07640ca194fd40bf.tar.bz2
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 'core/java/android/service/wallpaper')
-rw-r--r--core/java/android/service/wallpaper/WallpaperService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/service/wallpaper/WallpaperService.java b/core/java/android/service/wallpaper/WallpaperService.java
index eae7574..8fc8b9d 100644
--- a/core/java/android/service/wallpaper/WallpaperService.java
+++ b/core/java/android/service/wallpaper/WallpaperService.java
@@ -181,7 +181,7 @@ public abstract class WallpaperService extends Service {
final BaseSurfaceHolder mSurfaceHolder = new BaseSurfaceHolder() {
{
- mRequestedFormat = PixelFormat.RGB_565;
+ mRequestedFormat = PixelFormat.RGBX_8888;
}
@Override