Index: samplecode/SampleAARects.cpp |
diff --git a/samplecode/SampleAARects.cpp b/samplecode/SampleAARects.cpp |
index f552df6f1586c4ac580ea6d2fe97926c185b3f80..d0c1115a1e012382df9b6f6e4b87c27ee70f1781 100644 |
--- a/samplecode/SampleAARects.cpp |
+++ b/samplecode/SampleAARects.cpp |
@@ -62,10 +62,8 @@ protected: |
SkPaint bluePaint; |
bluePaint.setARGB(0xff, 0x0, 0x0, 0xff); |
SkPaint bmpPaint; |
- SkShader* bmpShader = SkShader::CreateBitmapShader(fBitmap, SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode); |
- bmpPaint.setShader(bmpShader); |
- bmpShader->unref(); |
- |
+ bmpPaint.setShader(SkShader::MakeBitmapShader(fBitmap, SkShader::kRepeat_TileMode, |
+ SkShader::kRepeat_TileMode)); |
bluePaint.setStrokeWidth(3); |
bmpPaint.setStrokeWidth(3); |