diff options
Diffstat (limited to 'include/core')
-rw-r--r-- | include/core/SkDraw.h | 2 | ||||
-rw-r--r-- | include/core/SkMaskFilter.h | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/include/core/SkDraw.h b/include/core/SkDraw.h index 5db4bf0eb1..4ac7cf9fa0 100644 --- a/include/core/SkDraw.h +++ b/include/core/SkDraw.h @@ -76,7 +76,7 @@ public: solely to assist in computing the mask's bounds (if the mode requests that). */ static bool DrawToMask(const SkPath& devPath, const SkIRect* clipBounds, - SkMaskFilter* filter, const SkMatrix* filterMatrix, + const SkMaskFilter*, const SkMatrix* filterMatrix, SkMask* mask, SkMask::CreateMode mode, SkPaint::Style style); diff --git a/include/core/SkMaskFilter.h b/include/core/SkMaskFilter.h index 02f58551b4..245de29b8e 100644 --- a/include/core/SkMaskFilter.h +++ b/include/core/SkMaskFilter.h @@ -40,7 +40,7 @@ public: /** Returns the format of the resulting mask that this subclass will return when its filterMask() method is called. */ - virtual SkMask::Format getFormat() = 0; + virtual SkMask::Format getFormat() const = 0; /** Create a new mask by filter the src mask. If src.fImage == null, then do not allocate or create the dst image @@ -56,7 +56,7 @@ public: @return true if the dst mask was correctly created. */ virtual bool filterMask(SkMask* dst, const SkMask& src, const SkMatrix&, - SkIPoint* margin); + SkIPoint* margin) const; enum BlurType { kNone_BlurType, //!< this maskfilter is not a blur @@ -91,7 +91,7 @@ public: * The default impl calls filterMask with the src mask having no image, * but subclasses may override this if they can compute the rect faster. */ - virtual void computeFastBounds(const SkRect& src, SkRect* dest); + virtual void computeFastBounds(const SkRect& src, SkRect* dest) const; protected: // empty for now, but lets get our subclass to remember to init us for the future @@ -127,7 +127,7 @@ protected: virtual FilterReturn filterRectsToNine(const SkRect[], int count, const SkMatrix&, const SkIRect& clipBounds, - NinePatch*); + NinePatch*) const; private: friend class SkDraw; @@ -139,7 +139,7 @@ private: */ bool filterPath(const SkPath& devPath, const SkMatrix& devMatrix, const SkRasterClip&, SkBounder*, SkBlitter* blitter, - SkPaint::Style style); + SkPaint::Style style) const; typedef SkFlattenable INHERITED; }; |