Index: gm/gm.cpp |
diff --git a/gm/gm.cpp b/gm/gm.cpp |
index dc882fd646d4772644416b7625cafac154614d05..ebdc4f183c3a6b36a7cbf3898a5d088801333d10 100644 |
--- a/gm/gm.cpp |
+++ b/gm/gm.cpp |
@@ -85,10 +85,9 @@ void GM::DrawGpuOnlyMessage(SkCanvas* canvas) { |
SkMatrix localM; |
localM.setRotate(35.f); |
localM.postTranslate(10.f, 0.f); |
- SkAutoTUnref<SkShader> shader(SkShader::CreateBitmapShader(bmp, SkShader::kMirror_TileMode, |
- SkShader::kMirror_TileMode, |
- &localM)); |
- paint.setShader(shader); |
+ paint.setShader(SkShader::MakeBitmapShader(bmp, SkShader::kMirror_TileMode, |
+ SkShader::kMirror_TileMode, |
+ &localM)); |
paint.setFilterQuality(kMedium_SkFilterQuality); |
canvas->drawPaint(paint); |
return; |