Index: gm/colortype.cpp |
diff --git a/gm/colortype.cpp b/gm/colortype.cpp |
index a42c00891224f48d889cbefb9d8ef3f87b6cabb2..47bc8a9ab78d9af33a4336690d5a8550e8c0d0ed 100644 |
--- a/gm/colortype.cpp |
+++ b/gm/colortype.cpp |
@@ -17,11 +17,10 @@ public: |
SK_ColorRED, SK_ColorGREEN, SK_ColorBLUE, |
SK_ColorMAGENTA, SK_ColorCYAN, SK_ColorYELLOW |
}; |
- SkShader* s = SkGradientShader::CreateSweep(0,0, colors, NULL, |
- SK_ARRAY_COUNT(colors)); |
SkMatrix local; |
local.setRotate(180); |
- s->setLocalMatrix(local); |
+ SkShader* s = SkGradientShader::CreateSweep(0,0, colors, NULL, |
+ SK_ARRAY_COUNT(colors), NULL, 0, &local); |
SkPaint paint; |
paint.setAntiAlias(true); |