summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2010-12-09 17:47:21 -0800
committerRomain Guy <romainguy@google.com>2010-12-09 17:47:21 -0800
commitaf636ebf5feb2837683fbfe965040cb706b32ec1 (patch)
treed0173871a1535d549cc1649daa2e1c2262671a52 /core
parent3eb3106137aa23ceb19c5817fa43bbe545636430 (diff)
downloadframeworks_base-af636ebf5feb2837683fbfe965040cb706b32ec1.zip
frameworks_base-af636ebf5feb2837683fbfe965040cb706b32ec1.tar.gz
frameworks_base-af636ebf5feb2837683fbfe965040cb706b32ec1.tar.bz2
Don't set the invisible flag when saving an empty layer.
Bug #3270371 Change-Id: I65e85671c2fb70d74553c91213e5e759e0ac64ee
Diffstat (limited to 'core')
-rw-r--r--core/java/android/view/View.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java
index ad96686..da12d46 100644
--- a/core/java/android/view/View.java
+++ b/core/java/android/view/View.java
@@ -6421,6 +6421,12 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
mPrivateFlags &= ~DRAWING_CACHE_VALID;
final ViewParent p = mParent;
final AttachInfo ai = mAttachInfo;
+ if (p != null && ai != null && ai.mHardwareAccelerated) {
+ // fast-track for GL-enabled applications; just invalidate the whole hierarchy
+ // with a null dirty rect, which tells the ViewRoot to redraw everything
+ p.invalidateChild(this, null);
+ return;
+ }
if (p != null && ai != null) {
final int scrollX = mScrollX;
final int scrollY = mScrollY;