Index: bench/ImageFilterDAGBench.cpp |
diff --git a/bench/ImageFilterDAGBench.cpp b/bench/ImageFilterDAGBench.cpp |
index 308b3b003785b79b6ccaa0a0d2057c8f8a92ae43..776ee787fdf818cd7a3b4c24a7e41a2def120c46 100644 |
--- a/bench/ImageFilterDAGBench.cpp |
+++ b/bench/ImageFilterDAGBench.cpp |
@@ -62,10 +62,11 @@ protected: |
auto xSelector = SkDisplacementMapEffect::kR_ChannelSelectorType; |
auto ySelector = SkDisplacementMapEffect::kB_ChannelSelectorType; |
SkScalar scale = 2; |
- sk_sp<SkImageFilter> displ(SkDisplacementMapEffect::Create(xSelector, ySelector, scale, |
- blur.get(), blur.get())); |
+ |
SkPaint paint; |
- paint.setImageFilter(std::move(displ)); |
+ paint.setImageFilter(SkDisplacementMapEffect::Make(xSelector, ySelector, scale, |
+ blur, blur)); |
+ |
SkRect rect = SkRect::Make(SkIRect::MakeWH(400, 400)); |
canvas->drawRect(rect, paint); |
} |