aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/BitmapHeapTest.cpp
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2016-03-13 12:32:36 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-03-13 12:32:36 -0700
commitce563cdd48ec7ce4e0420dd88760df9be9dba50c (patch)
tree8d247c8564cf2fa112f7d34d2c139ed6317fc9a8 /tests/BitmapHeapTest.cpp
parent94ad73ac1648fec5e73e29839d461ecb6366a888 (diff)
more shader-->sp conversions
Diffstat (limited to 'tests/BitmapHeapTest.cpp')
-rw-r--r--tests/BitmapHeapTest.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/BitmapHeapTest.cpp b/tests/BitmapHeapTest.cpp
index eb86283618..89e6faf764 100644
--- a/tests/BitmapHeapTest.cpp
+++ b/tests/BitmapHeapTest.cpp
@@ -50,9 +50,8 @@ DEF_TEST(BitmapHeap, reporter) {
uint32_t* pixel = bm.getAddr32(1,0);
*pixel = SK_ColorBLUE;
- SkShader* bitmapShader = SkShader::CreateBitmapShader(bm, SkShader::kRepeat_TileMode,
- SkShader::kRepeat_TileMode);
- SkAutoTUnref<SkShader> aur(bitmapShader);
+ auto bitmapShader = SkShader::MakeBitmapShader(bm, SkShader::kRepeat_TileMode,
+ SkShader::kRepeat_TileMode);
// Flatten, storing it in the bitmap heap.
SkBitmapHeap heap(1, 1);