| Index: include/effects/SkBlurImageFilter.h
|
| diff --git a/include/effects/SkBlurImageFilter.h b/include/effects/SkBlurImageFilter.h
|
| index 60dab729b40724644ada4b693f0451d77987f5c5..44bf3935ccf6d25a37ffb21dbb43788cce15f91b 100644
|
| --- a/include/effects/SkBlurImageFilter.h
|
| +++ b/include/effects/SkBlurImageFilter.h
|
| @@ -13,10 +13,13 @@
|
|
|
| class SK_API SkBlurImageFilter : public SkImageFilter {
|
| public:
|
| - SkBlurImageFilter(SkScalar sigmaX,
|
| - SkScalar sigmaY,
|
| - SkImageFilter* input = NULL,
|
| - const CropRect* cropRect = NULL);
|
| + static SkBlurImageFilter* Create(SkScalar sigmaX,
|
| + SkScalar sigmaY,
|
| + SkImageFilter* input = NULL,
|
| + const CropRect* cropRect = NULL) {
|
| + return SkNEW_ARGS(SkBlurImageFilter, (sigmaX, sigmaY, input, cropRect));
|
| + }
|
| +
|
| virtual void computeFastBounds(const SkRect&, SkRect*) const SK_OVERRIDE;
|
|
|
| SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkBlurImageFilter)
|
| @@ -34,6 +37,14 @@ protected:
|
| virtual bool filterImageGPU(Proxy* proxy, const SkBitmap& src, const SkMatrix& ctm,
|
| SkBitmap* result, SkIPoint* offset) const SK_OVERRIDE;
|
|
|
| +#ifdef SK_SUPPORT_LEGACY_PUBLICEFFECTCONSTRUCTORS
|
| +public:
|
| +#endif
|
| + SkBlurImageFilter(SkScalar sigmaX,
|
| + SkScalar sigmaY,
|
| + SkImageFilter* input = NULL,
|
| + const CropRect* cropRect = NULL);
|
| +
|
| private:
|
| SkSize fSigma;
|
| typedef SkImageFilter INHERITED;
|
|
|