Index: gm/xfermodes.cpp |
diff --git a/gm/xfermodes.cpp b/gm/xfermodes.cpp |
index a1427cf212e4a92b78d962c8898b06558ab8b2bd..1a71255d3e0b94ca06e9e18ef278391a9bd2ef1c 100644 |
--- a/gm/xfermodes.cpp |
+++ b/gm/xfermodes.cpp |
@@ -261,8 +261,10 @@ |
const SkScalar h = SkIntToScalar(H); |
SkMatrix m; |
m.setScale(SkIntToScalar(6), SkIntToScalar(6)); |
- auto s = SkShader::MakeBitmapShader(fBG, SkShader::kRepeat_TileMode, |
- SkShader::kRepeat_TileMode, &m); |
+ SkShader* s = SkShader::CreateBitmapShader(fBG, |
+ SkShader::kRepeat_TileMode, |
+ SkShader::kRepeat_TileMode, |
+ &m); |
SkPaint labelP; |
labelP.setAntiAlias(true); |
@@ -323,6 +325,7 @@ |
y0 = 0; |
} |
} |
+ s->unref(); |
} |
private: |