From ce563cdd48ec7ce4e0420dd88760df9be9dba50c Mon Sep 17 00:00:00 2001 From: reed Date: Sun, 13 Mar 2016 12:32:36 -0700 Subject: more shader-->sp conversions BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1789633002 Review URL: https://codereview.chromium.org/1789633002 --- tests/BitmapHeapTest.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tests/BitmapHeapTest.cpp') 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 aur(bitmapShader); + auto bitmapShader = SkShader::MakeBitmapShader(bm, SkShader::kRepeat_TileMode, + SkShader::kRepeat_TileMode); // Flatten, storing it in the bitmap heap. SkBitmapHeap heap(1, 1); -- cgit v1.2.3