Index: bench/MergeBench.cpp |
diff --git a/bench/MergeBench.cpp b/bench/MergeBench.cpp |
index 1723cbfc2191643d8e50ac5dc7713a500beab63c..cec0ea93e4b2df81caf5601ec4710c71751bb0a5 100644 |
--- a/bench/MergeBench.cpp |
+++ b/bench/MergeBench.cpp |
@@ -44,11 +44,11 @@ protected: |
private: |
SkImageFilter* mergeBitmaps() { |
- SkImageFilter* first = new SkBitmapSource(fCheckerboard); |
- SkImageFilter* second = new SkBitmapSource(fBitmap); |
+ SkImageFilter* first = SkBitmapSource::Create(fCheckerboard); |
+ SkImageFilter* second = SkBitmapSource::Create(fBitmap); |
SkAutoUnref aur0(first); |
SkAutoUnref aur1(second); |
- return new SkMergeImageFilter(first, second); |
+ return SkMergeImageFilter::Create(first, second); |
} |
void make_bitmap() { |