• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

frameworks/base


Commit MetaInfo

Revisione9e23fa1d80810bb1048b086cf83c22345006288 (tree)
Time2011-09-13 16:35:59
AuthorChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

a temporary fix the hardware layer issue

Change Summary

Incremental Difference

--- a/core/java/android/view/View.java
+++ b/core/java/android/view/View.java
@@ -7212,7 +7212,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
72127212 mPrivateFlags &= ~DRAWN;
72137213 mPrivateFlags |= INVALIDATED;
72147214 mPrivateFlags &= ~DRAWING_CACHE_VALID;
7215- if (mParent != null && mAttachInfo != null && mAttachInfo.mHardwareAccelerated) {
7215+ if (mParent != null && mAttachInfo != null ){//&& mAttachInfo.mHardwareAccelerated) {
72167216 mParent.invalidateChild(this, null);
72177217 }
72187218 }
@@ -8436,7 +8436,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
84368436 throw new IllegalArgumentException("Layer type can only be one of: LAYER_TYPE_NONE, "
84378437 + "LAYER_TYPE_SOFTWARE or LAYER_TYPE_HARDWARE");
84388438 }
8439-
8439+if (layerType == LAYER_TYPE_HARDWARE) layerType = LAYER_TYPE_SOFTWARE;
84408440 if (layerType == mLayerType) {
84418441 if (layerType != LAYER_TYPE_NONE && paint != mLayerPaint) {
84428442 mLayerPaint = paint == null ? new Paint() : paint;