frameworks/base
Revision | e9e23fa1d80810bb1048b086cf83c22345006288 (tree) |
---|---|
Time | 2011-09-13 16:35:59 |
Author | Chih-Wei Huang <cwhuang@linu...> |
Commiter | Chih-Wei Huang |
a temporary fix the hardware layer issue
@@ -7212,7 +7212,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility | ||
7212 | 7212 | mPrivateFlags &= ~DRAWN; |
7213 | 7213 | mPrivateFlags |= INVALIDATED; |
7214 | 7214 | mPrivateFlags &= ~DRAWING_CACHE_VALID; |
7215 | - if (mParent != null && mAttachInfo != null && mAttachInfo.mHardwareAccelerated) { | |
7215 | + if (mParent != null && mAttachInfo != null ){//&& mAttachInfo.mHardwareAccelerated) { | |
7216 | 7216 | mParent.invalidateChild(this, null); |
7217 | 7217 | } |
7218 | 7218 | } |
@@ -8436,7 +8436,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility | ||
8436 | 8436 | throw new IllegalArgumentException("Layer type can only be one of: LAYER_TYPE_NONE, " |
8437 | 8437 | + "LAYER_TYPE_SOFTWARE or LAYER_TYPE_HARDWARE"); |
8438 | 8438 | } |
8439 | - | |
8439 | +if (layerType == LAYER_TYPE_HARDWARE) layerType = LAYER_TYPE_SOFTWARE; | |
8440 | 8440 | if (layerType == mLayerType) { |
8441 | 8441 | if (layerType != LAYER_TYPE_NONE && paint != mLayerPaint) { |
8442 | 8442 | mLayerPaint = paint == null ? new Paint() : paint; |