Index: gm/badpaint.cpp |
diff --git a/gm/badpaint.cpp b/gm/badpaint.cpp |
index 7c51c749eed50af620bccb5f051449e89da00dff..85eaa1ed109f27fabe49d69c481213846baecd21 100644 |
--- a/gm/badpaint.cpp |
+++ b/gm/badpaint.cpp |
@@ -32,14 +32,13 @@ protected: |
// Empty bitmap. |
fPaints.push_back().setColor(SK_ColorGREEN); |
- fPaints.back().setShader(SkShader::CreateBitmapShader(emptyBmp, SkShader::kClamp_TileMode, |
- SkShader::kClamp_TileMode))->unref(); |
+ fPaints.back().setShader(SkShader::MakeBitmapShader(emptyBmp, SkShader::kClamp_TileMode, |
+ SkShader::kClamp_TileMode)); |
// Non-invertible local matrix. |
fPaints.push_back().setColor(SK_ColorGREEN); |
- fPaints.back().setShader(SkShader::CreateBitmapShader(blueBmp, SkShader::kClamp_TileMode, |
- SkShader::kClamp_TileMode, |
- &badMatrix))->unref(); |
+ fPaints.back().setShader(SkShader::MakeBitmapShader(blueBmp, SkShader::kClamp_TileMode, |
+ SkShader::kClamp_TileMode, &badMatrix)); |
} |
void onDraw(SkCanvas* canvas) override { |