From 8a21c9fe7f5fef9e87115defef27bd7218419f28 Mon Sep 17 00:00:00 2001 From: reed Date: Tue, 8 Mar 2016 18:50:00 -0800 Subject: use Make instead of Create to return a shared shader Partially updated call sites. Undefine the flag in SkSHader.h to convert the remaining sites. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1772463002 Review URL: https://codereview.chromium.org/1772463002 --- tools/sk_tool_utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/sk_tool_utils.h') diff --git a/tools/sk_tool_utils.h b/tools/sk_tool_utils.h index dab42e31fd..1e67afb6d2 100644 --- a/tools/sk_tool_utils.h +++ b/tools/sk_tool_utils.h @@ -92,7 +92,7 @@ namespace sk_tool_utils { SkTypeface* create_font(const char* name, SkTypeface::Style); /** Returns a newly created CheckerboardShader. */ - SkShader* create_checkerboard_shader(SkColor c1, SkColor c2, int size); + sk_sp create_checkerboard_shader(SkColor c1, SkColor c2, int size); /** Draw a checkerboard pattern in the current canvas, restricted to the current clip, using SkXfermode::kSrc_Mode. */ -- cgit v1.2.3