From e8f3062a36d3682f4019309a32b5b84dc9eddf8c Mon Sep 17 00:00:00 2001 From: reed Date: Wed, 23 Mar 2016 18:59:25 -0700 Subject: switch surface to sk_sp BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1817383002 CQ_EXTRA_TRYBOTS=client.skia.compile:Build-Ubuntu-GCC-x86_64-Release-CMake-Trybot,Build-Mac-Clang-x86_64-Release-CMake-Trybot Review URL: https://codereview.chromium.org/1817383002 --- gm/transparency.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gm/transparency.cpp') diff --git a/gm/transparency.cpp b/gm/transparency.cpp index 5e057617d4..5f324605d8 100644 --- a/gm/transparency.cpp +++ b/gm/transparency.cpp @@ -62,7 +62,7 @@ DEF_SIMPLE_GM(transparency_check, canvas, 1792, 1080) { sk_tool_utils::color_to_565(0xFF666666), 8); { SkAutoCanvasRestore autoCanvasRestore(canvas, true); - SkAutoTUnref surface(SkSurface::NewRasterN32Premul(256, 9)); + auto surface(SkSurface::MakeRasterN32Premul(256, 9)); make_transparency(surface->getCanvas(), 256.0f, 9.0f); canvas->scale(7.0f, 120.0f); surface->draw(canvas, 0, 0, nullptr); -- cgit v1.2.3