Index: tests/BitmapHeapTest.cpp |
diff --git a/tests/BitmapHeapTest.cpp b/tests/BitmapHeapTest.cpp |
index 89e6faf76491089c8c361d4dcba1d9af589c5d06..eb86283618c77d5c1fd88d30bb575d508a7d3407 100644 |
--- a/tests/BitmapHeapTest.cpp |
+++ b/tests/BitmapHeapTest.cpp |
@@ -50,8 +50,9 @@ |
uint32_t* pixel = bm.getAddr32(1,0); |
*pixel = SK_ColorBLUE; |
- auto bitmapShader = SkShader::MakeBitmapShader(bm, SkShader::kRepeat_TileMode, |
- SkShader::kRepeat_TileMode); |
+ SkShader* bitmapShader = SkShader::CreateBitmapShader(bm, SkShader::kRepeat_TileMode, |
+ SkShader::kRepeat_TileMode); |
+ SkAutoTUnref<SkShader> aur(bitmapShader); |
// Flatten, storing it in the bitmap heap. |
SkBitmapHeap heap(1, 1); |