aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/effects/SkBitmapSource.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/effects/SkBitmapSource.h')
-rw-r--r--include/effects/SkBitmapSource.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/effects/SkBitmapSource.h b/include/effects/SkBitmapSource.h
index e4281c9619..38b13020eb 100644
--- a/include/effects/SkBitmapSource.h
+++ b/include/effects/SkBitmapSource.h
@@ -13,13 +13,11 @@
class SK_API SkBitmapSource : public SkImageFilter {
public:
- static SkBitmapSource* Create(const SkBitmap& bitmap) {
- return SkNEW_ARGS(SkBitmapSource, (bitmap));
- }
+ static SkBitmapSource* Create(const SkBitmap& bitmap) { return new SkBitmapSource(bitmap); }
static SkBitmapSource* Create(const SkBitmap& bitmap,
const SkRect& srcRect, const SkRect& dstRect,
SkFilterQuality filterQuality = kHigh_SkFilterQuality) {
- return SkNEW_ARGS(SkBitmapSource, (bitmap, srcRect, dstRect, filterQuality));
+ return new SkBitmapSource(bitmap, srcRect, dstRect, filterQuality);
}
void computeFastBounds(const SkRect& src, SkRect* dst) const override;