Merge "Clip GradientDrawable's saveLayer" into nyc-mr1-dev

This commit is contained in:
TreeHugger Robot
2016-06-28 18:24:22 +00:00
committed by Android (Google) Code Review

View File

@@ -699,7 +699,7 @@ public class GradientDrawable extends Drawable {
float rad = mStrokePaint.getStrokeWidth();
canvas.saveLayer(mRect.left - rad, mRect.top - rad,
mRect.right + rad, mRect.bottom + rad,
mLayerPaint, Canvas.HAS_ALPHA_LAYER_SAVE_FLAG);
mLayerPaint);
// don't perform the filter in our individual paints
// since the layer will do it for us