diff options
author | Romain Guy <romainguy@google.com> | 2012-09-28 19:24:37 -0700 |
---|---|---|
committer | Romain Guy <romainguy@google.com> | 2012-09-28 19:24:37 -0700 |
commit | 885d82d4274170873919660550c28df9ee14ca1b (patch) | |
tree | 787a7929c5a9738bf16e280691e5e98742893f32 /graphics | |
parent | c5211780ce60cd77d31b4df0f708bb760daddd5d (diff) | |
download | frameworks_base-885d82d4274170873919660550c28df9ee14ca1b.zip frameworks_base-885d82d4274170873919660550c28df9ee14ca1b.tar.gz frameworks_base-885d82d4274170873919660550c28df9ee14ca1b.tar.bz2 |
reset() should reset. Otherwise it would be called something else.
Bug #7256095
Change-Id: I610bbcaccdceaf2b5bb5f9d231283335911d4cd9
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/java/android/graphics/Paint.java | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/graphics/java/android/graphics/Paint.java b/graphics/java/android/graphics/Paint.java index f68f9dc..4170cfe 100644 --- a/graphics/java/android/graphics/Paint.java +++ b/graphics/java/android/graphics/Paint.java @@ -371,12 +371,30 @@ public class Paint { public void reset() { native_reset(mNativePaint); setFlags(DEFAULT_PAINT_FLAGS); + // TODO: Turning off hinting has undesirable side effects, we need to // revisit hinting once we add support for subpixel positioning // setHinting(DisplayMetrics.DENSITY_DEVICE >= DisplayMetrics.DENSITY_TV // ? HINTING_OFF : HINTING_ON); + + mColorFilter = null; + mMaskFilter = null; + mPathEffect = null; + mRasterizer = null; + mShader = null; + mTypeface = null; + mXfermode = null; + mHasCompatScaling = false; - mCompatScaling = mInvCompatScaling = 1; + mCompatScaling = 1; + mInvCompatScaling = 1; + + hasShadow = false; + shadowDx = 0; + shadowDy = 0; + shadowRadius = 0; + shadowColor = 0; + mBidiFlags = BIDI_DEFAULT_LTR; setTextLocale(Locale.getDefault()); } |