summaryrefslogtreecommitdiffstats
path: root/tools/layoutlib
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2012-04-27 14:16:30 -0700
committerDianne Hackborn <hackbod@google.com>2012-04-27 15:21:44 -0700
commit12d3a94397c33fdb773a1eaaaa13cab80bf0c571 (patch)
tree607f0f7677f8597227883ced5d97f27b0cf39c52 /tools/layoutlib
parent11dea2945124b166f167d4b5a23a059f33c04fa1 (diff)
downloadframeworks_base-12d3a94397c33fdb773a1eaaaa13cab80bf0c571.zip
frameworks_base-12d3a94397c33fdb773a1eaaaa13cab80bf0c571.tar.gz
frameworks_base-12d3a94397c33fdb773a1eaaaa13cab80bf0c571.tar.bz2
When a window is first shown only draw once while animating.
On some hardware allocating a new graphics buffer is quite expensive, which blocks updates to the UI. This can cause glitches when performing window animations. To reduce these glitches, the view hierarchy will now only allow itself to be drawn once if its window is being shown while the window manager is animating, not resuming draws until it is told that the animation is done. Change-Id: Ie15192f6fddbd0931b022a72c76ddd55ca266d84
Diffstat (limited to 'tools/layoutlib')
-rw-r--r--tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgeWindow.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgeWindow.java b/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgeWindow.java
index 7c683c9..434ae9d 100644
--- a/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgeWindow.java
+++ b/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgeWindow.java
@@ -91,6 +91,10 @@ public final class BridgeWindow implements IWindow {
}
@Override
+ public void doneAnimating() {
+ }
+
+ @Override
public IBinder asBinder() {
// pass for now.
return null;