Index: gm/colorfilterimagefilter.cpp |
diff --git a/gm/colorfilterimagefilter.cpp b/gm/colorfilterimagefilter.cpp |
index b0f67bff300e8beb8bea7099a262573efc56a722..fa33a9c5cba739b80f6e80df8a2a9bfd5ea2fb55 100644 |
--- a/gm/colorfilterimagefilter.cpp |
+++ b/gm/colorfilterimagefilter.cpp |
@@ -212,7 +212,7 @@ DEF_SIMPLE_GM(colorfiltershader, canvas, 800, 800) { |
for (int x = -1; x < filters.count(); ++x) { |
SkColorFilter* filter = x >= 0 ? filters[x] : nullptr; |
- paint.setShader(shader->newWithColorFilter(filter))->unref(); |
+ paint.setShader(shader->makeWithColorFilter(filter)); |
canvas->drawRect(r, paint); |
canvas->translate(150, 0); |
} |