Index: gm/convexpolyclip.cpp |
diff --git a/gm/convexpolyclip.cpp b/gm/convexpolyclip.cpp |
index a8037aaa542a6bd0c29a3efab41d32b5c24ec648..ed674340093ba2456b2d7dd2f5cf0e4d4a7da768 100644 |
--- a/gm/convexpolyclip.cpp |
+++ b/gm/convexpolyclip.cpp |
@@ -38,15 +38,15 @@ static SkBitmap make_bmp(int w, int h) { |
SK_Scalar1}; |
SkPaint paint; |
- paint.setShader(SkGradientShader::CreateRadial( |
- pt, radius, |
- colors, pos, |
- SK_ARRAY_COUNT(colors), |
- SkShader::kRepeat_TileMode))->unref(); |
SkRect rect = SkRect::MakeWH(wScalar, hScalar); |
SkMatrix mat = SkMatrix::I(); |
for (int i = 0; i < 4; ++i) { |
- paint.getShader()->setLocalMatrix(mat); |
+ paint.setShader(SkGradientShader::CreateRadial( |
+ pt, radius, |
+ colors, pos, |
+ SK_ARRAY_COUNT(colors), |
+ SkShader::kRepeat_TileMode, |
+ NULL, 0, &mat))->unref(); |
canvas.drawRect(rect, paint); |
rect.inset(wScalar / 8, hScalar / 8); |
mat.preTranslate(6 * wScalar, 6 * hScalar); |