File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed
graphics/java/android/graphics Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -371,12 +371,30 @@ public Paint(Paint paint) {
371371 public void reset () {
372372 native_reset (mNativePaint );
373373 setFlags (DEFAULT_PAINT_FLAGS );
374+
374375 // TODO: Turning off hinting has undesirable side effects, we need to
375376 // revisit hinting once we add support for subpixel positioning
376377 // setHinting(DisplayMetrics.DENSITY_DEVICE >= DisplayMetrics.DENSITY_TV
377378 // ? HINTING_OFF : HINTING_ON);
379+
380+ mColorFilter = null ;
381+ mMaskFilter = null ;
382+ mPathEffect = null ;
383+ mRasterizer = null ;
384+ mShader = null ;
385+ mTypeface = null ;
386+ mXfermode = null ;
387+
378388 mHasCompatScaling = false ;
379- mCompatScaling = mInvCompatScaling = 1 ;
389+ mCompatScaling = 1 ;
390+ mInvCompatScaling = 1 ;
391+
392+ hasShadow = false ;
393+ shadowDx = 0 ;
394+ shadowDy = 0 ;
395+ shadowRadius = 0 ;
396+ shadowColor = 0 ;
397+
380398 mBidiFlags = BIDI_DEFAULT_LTR ;
381399 setTextLocale (Locale .getDefault ());
382400 }
You can’t perform that action at this time.
0 commit comments