aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkImageFilter.h
diff options
context:
space:
mode:
authorGravatar vjiaoblack <vjiaoblack@google.com>2016-08-23 07:50:52 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-08-23 07:50:52 -0700
commita97a1ab5719d5c355f7900b7f17dec1e467cf57e (patch)
treea9c26a3ee80ca674c9737c18d849ea2426b3c55f /include/core/SkImageFilter.h
parentbb51f4a3a78ecb35cc4da24d50a440f58a0f8899 (diff)
Moving SkBlurImageFilter into core
Diffstat (limited to 'include/core/SkImageFilter.h')
-rw-r--r--include/core/SkImageFilter.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/core/SkImageFilter.h b/include/core/SkImageFilter.h
index 6210073bf4..97f84dc596 100644
--- a/include/core/SkImageFilter.h
+++ b/include/core/SkImageFilter.h
@@ -152,6 +152,10 @@ public:
return this->isColorFilterNode(filterPtr);
}
+ static sk_sp<SkImageFilter> MakeBlur(SkScalar sigmaX, SkScalar sigmaY,
+ sk_sp<SkImageFilter> input,
+ const CropRect* cropRect = nullptr);
+
/**
* Returns true (and optionally returns a ref'd filter) if this imagefilter can be completely
* replaced by the returned colorfilter. i.e. the two effects will affect drawing in the
@@ -229,6 +233,7 @@ public:
SK_TO_STRING_PUREVIRT()
SK_DEFINE_FLATTENABLE_TYPE(SkImageFilter)
+ SK_DECLARE_FLATTENABLE_REGISTRAR_GROUP()
protected:
class Common {