Index: samplecode/SampleRepeatTile.cpp |
diff --git a/samplecode/SampleRepeatTile.cpp b/samplecode/SampleRepeatTile.cpp |
index 9287439613cbadeebdb3fa83f36f9c93acd1f41a..598a088373c53cfa5a0fe40ca7c6d6cc6b861847 100644 |
--- a/samplecode/SampleRepeatTile.cpp |
+++ b/samplecode/SampleRepeatTile.cpp |
@@ -37,8 +37,7 @@ static void make_paint(SkPaint* paint, SkShader::TileMode tm) { |
SkBitmap bm; |
make_bitmap(&bm); |
- SkShader* shader = SkShader::CreateBitmapShader(bm, tm, tm); |
- paint->setShader(shader)->unref(); |
+ paint->setShader(SkShader::MakeBitmapShader(bm, tm, tm)); |
} |
class RepeatTileView : public SampleView { |