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

am: 694acb1e36

Change-Id: I9c1ed4155674e7c7a218c2afe784dd703613d825
This commit is contained in:
Chris Craik
2016-06-28 18:33:24 +00:00
committed by android-build-merger

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