aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/MorphologyBench.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bench/MorphologyBench.cpp')
-rw-r--r--bench/MorphologyBench.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/bench/MorphologyBench.cpp b/bench/MorphologyBench.cpp
index 0bf689eff6..a32bca620a 100644
--- a/bench/MorphologyBench.cpp
+++ b/bench/MorphologyBench.cpp
@@ -66,12 +66,12 @@ protected:
SkMorphologyImageFilter* mf = NULL;
switch (fStyle) {
case kDilate_MT:
- mf = new SkDilateImageFilter(SkScalarFloorToInt(fRadius),
- SkScalarFloorToInt(fRadius));
+ mf = SkDilateImageFilter::Create(SkScalarFloorToInt(fRadius),
+ SkScalarFloorToInt(fRadius));
break;
case kErode_MT:
- mf = new SkErodeImageFilter(SkScalarFloorToInt(fRadius),
- SkScalarFloorToInt(fRadius));
+ mf = SkErodeImageFilter::Create(SkScalarFloorToInt(fRadius),
+ SkScalarFloorToInt(fRadius));
break;
}
paint.setImageFilter(mf)->unref();