aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/GradientTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/GradientTest.cpp')
-rw-r--r--tests/GradientTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/GradientTest.cpp b/tests/GradientTest.cpp
index 1e8f3936b3..ee776e3651 100644
--- a/tests/GradientTest.cpp
+++ b/tests/GradientTest.cpp
@@ -73,7 +73,7 @@ static void none_gradproc(skiatest::Reporter* reporter, const GradRec&, const Gr
}
static void color_gradproc(skiatest::Reporter* reporter, const GradRec& rec, const GradRec&) {
- SkAutoTUnref<SkShader> s(new SkColorShader(rec.fColors[0]));
+ sk_sp<SkShader> s(new SkColorShader(rec.fColors[0]));
REPORTER_ASSERT(reporter, SkShader::kColor_GradientType == s->asAGradient(nullptr));
SkShader::GradientInfo info;