Index: gm/colorfilters.cpp |
diff --git a/gm/colorfilters.cpp b/gm/colorfilters.cpp |
index eaee39dd55b729df124a2e7fc1b3f58a27059e2d..635298533b225a762dc92d9af69a5e90bbb5890b 100644 |
--- a/gm/colorfilters.cpp |
+++ b/gm/colorfilters.cpp |
@@ -30,7 +30,7 @@ static void install_nothing(SkPaint* paint, uint32_t, uint32_t) { |
} |
static void install_lighting(SkPaint* paint, uint32_t mul, uint32_t add) { |
- paint->setColorFilter(SkColorMatrixFilter::CreateLightingFilter(mul, add))->unref(); |
+ paint->setColorFilter(SkColorMatrixFilter::MakeLightingFilter(mul, add)); |
} |
class ColorFiltersGM : public skiagm::GM { |