Index: include/core/SkMaskFilter.h |
diff --git a/include/core/SkMaskFilter.h b/include/core/SkMaskFilter.h |
index 3113c93442764541f45df1d1d508a7884de7a827..8051e7d831d88aab9e5b0bd0af0308eb2114b192 100644 |
--- a/include/core/SkMaskFilter.h |
+++ b/include/core/SkMaskFilter.h |
@@ -10,6 +10,7 @@ |
#ifndef SkMaskFilter_DEFINED |
#define SkMaskFilter_DEFINED |
+#include "SkBlurTypes.h" |
#include "SkFlattenable.h" |
#include "SkMask.h" |
#include "SkPaint.h" |
@@ -138,6 +139,18 @@ public: |
*/ |
virtual void computeFastBounds(const SkRect& src, SkRect* dest) const; |
+ struct BlurRec { |
+ SkScalar fSigma; |
+ SkBlurStyle fStyle; |
+ SkBlurQuality fQuality; |
+ }; |
+ /** |
+ * If this filter can be represented by a BlurRec, return true and (if not null) fill in the |
+ * provided BlurRec parameter. If this effect cannot be represented as a BlurRec, return false |
+ * and ignore the BlurRec parameter. |
+ */ |
+ virtual bool asABlur(BlurRec*) const; |
+ |
SK_TO_STRING_PUREVIRT() |
SK_DEFINE_FLATTENABLE_TYPE(SkMaskFilter) |