Index: bench/MorphologyBench.cpp |
diff --git a/bench/MorphologyBench.cpp b/bench/MorphologyBench.cpp |
index 0bf689eff63a26c8ed4d622c28884f6a31d1ef8c..a32bca620a3288efcd1d8378fe995c9113efaf1d 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(); |