diff options
author | Romain Guy <romainguy@google.com> | 2012-10-03 14:53:25 -0700 |
---|---|---|
committer | Romain Guy <romainguy@google.com> | 2012-10-03 18:07:59 -0700 |
commit | dfab363807b3b44be4032e410f016e0a0d018426 (patch) | |
tree | 36321005bce97e4177e84b628371268a2b84490b /graphics | |
parent | a762dfc68afbbfd439af064e2dc833d712c1eda8 (diff) | |
download | frameworks_base-dfab363807b3b44be4032e410f016e0a0d018426.zip frameworks_base-dfab363807b3b44be4032e410f016e0a0d018426.tar.gz frameworks_base-dfab363807b3b44be4032e410f016e0a0d018426.tar.bz2 |
Fix rendering artifacts on tiled renderers
Bug #7275145
This change fixes ViewRoot and adds extra debug information. It does
not solve the problem entirely. Another CL will.
Change-Id: I7e604ba38aad7f421769783dcbd998d6905ab2d9
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/java/android/graphics/drawable/ColorDrawable.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/graphics/java/android/graphics/drawable/ColorDrawable.java b/graphics/java/android/graphics/drawable/ColorDrawable.java index 4561397..d11e554 100644 --- a/graphics/java/android/graphics/drawable/ColorDrawable.java +++ b/graphics/java/android/graphics/drawable/ColorDrawable.java @@ -20,6 +20,7 @@ import android.graphics.*; import android.content.res.Resources; import android.content.res.TypedArray; import android.util.AttributeSet; +import android.view.ViewDebug; import org.xmlpull.v1.XmlPullParser; import org.xmlpull.v1.XmlPullParserException; @@ -34,6 +35,7 @@ import java.io.IOException; * @attr ref android.R.styleable#ColorDrawable_color */ public class ColorDrawable extends Drawable { + @ViewDebug.ExportedProperty(deepExport = true, prefix = "state_") private ColorState mState; private final Paint mPaint = new Paint(); private boolean mMutated; @@ -174,6 +176,7 @@ public class ColorDrawable extends Drawable { final static class ColorState extends ConstantState { int mBaseColor; // base color, independent of setAlpha() + @ViewDebug.ExportedProperty int mUseColor; // basecolor modulated by setAlpha() int mChangingConfigurations; |