| Index: src/effects/SkPaintImageFilter.cpp
|
| diff --git a/src/effects/SkPaintImageFilter.cpp b/src/effects/SkPaintImageFilter.cpp
|
| index 7056f26863fcba0cd2bb9ca85db03800a5df42db..cbd793a692685852d789e243fafae6f0ef1cf807 100644
|
| --- a/src/effects/SkPaintImageFilter.cpp
|
| +++ b/src/effects/SkPaintImageFilter.cpp
|
| @@ -12,20 +12,16 @@
|
| #include "SkSpecialSurface.h"
|
| #include "SkWriteBuffer.h"
|
|
|
| -SkImageFilter* SkPaintImageFilter::Create(const SkPaint& paint, const CropRect* cropRect) {
|
| - return new SkPaintImageFilter(paint, cropRect);
|
| -}
|
| -
|
| SkPaintImageFilter::SkPaintImageFilter(const SkPaint& paint, const CropRect* cropRect)
|
| - : INHERITED(0, nullptr, cropRect)
|
| - , fPaint(paint) {
|
| + : INHERITED(nullptr, 0, cropRect)
|
| + , fPaint(paint) {
|
| }
|
|
|
| SkFlattenable* SkPaintImageFilter::CreateProc(SkReadBuffer& buffer) {
|
| SK_IMAGEFILTER_UNFLATTEN_COMMON(common, 0);
|
| SkPaint paint;
|
| buffer.readPaint(&paint);
|
| - return Create(paint, &common.cropRect());
|
| + return SkPaintImageFilter::Make(paint, &common.cropRect()).release();
|
| }
|
|
|
| void SkPaintImageFilter::flatten(SkWriteBuffer& buffer) const {
|
| @@ -80,6 +76,7 @@ bool SkPaintImageFilter::canComputeFastBounds() const {
|
| #ifndef SK_IGNORE_TO_STRING
|
| void SkPaintImageFilter::toString(SkString* str) const {
|
| str->appendf("SkPaintImageFilter: (");
|
| + fPaint.toString(str);
|
| str->append(")");
|
| }
|
| #endif
|
|
|