Index: tests/SkColor4fTest.cpp |
diff --git a/tests/SkColor4fTest.cpp b/tests/SkColor4fTest.cpp |
index 62eed211dfdbc5b412839bc0d48be316a968922e..0b5a4e05f7d6adf90ffbe13487039b0cb530b5df 100644 |
--- a/tests/SkColor4fTest.cpp |
+++ b/tests/SkColor4fTest.cpp |
@@ -125,8 +125,7 @@ static sk_sp<SkShader> make_grad_sh() { |
static sk_sp<SkShader> make_cf_sh() { |
SkAutoTUnref<SkColorFilter> filter(make_mx_cf()); |
- sk_sp<SkShader> shader(make_color_sh()); |
- return sk_sp<SkShader>(shader->newWithColorFilter(filter)); |
+ return make_color_sh()->makeWithColorFilter(filter); |
} |
static bool compare_spans(const SkPM4f span4f[], const SkPMColor span4b[], int count, |