bench, samples, etc: s/SkAutoTUnref/sk_sp/
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4437
Change-Id: Ice071684ac8a99e4bb405b4b9be8e8f42c7bac42
Reviewed-on: https://skia-review.googlesource.com/4437
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Hal Canary <halcanary@google.com>
diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp
index 0651302..25e04bf 100644
--- a/bench/nanobench.cpp
+++ b/bench/nanobench.cpp
@@ -801,9 +801,9 @@
fCurrentAnimSKP++;
SkString name = SkOSPath::Basename(path.c_str());
- SkAutoTUnref<SKPAnimationBench::Animation> animation(
+ sk_sp<SKPAnimationBench::Animation> animation(
SKPAnimationBench::CreateZoomAnimation(fZoomMax, fZoomPeriodMs));
- return new SKPAnimationBench(name.c_str(), pic.get(), fClip, animation,
+ return new SKPAnimationBench(name.c_str(), pic.get(), fClip, animation.get(),
FLAGS_loopSKP);
}
}