Index: include/effects/SkOffsetImageFilter.h |
diff --git a/include/effects/SkOffsetImageFilter.h b/include/effects/SkOffsetImageFilter.h |
index 40f2ce337470ef438edb5d1addb0c2268b85c1b7..30e380d89b03bb00dc68787530da5f817b936109 100644 |
--- a/include/effects/SkOffsetImageFilter.h |
+++ b/include/effects/SkOffsetImageFilter.h |
@@ -12,32 +12,30 @@ |
#include "SkPoint.h" |
class SK_API SkOffsetImageFilter : public SkImageFilter { |
+ typedef SkImageFilter INHERITED; |
+ |
public: |
- static SkImageFilter* Create(SkScalar dx, SkScalar dy, SkImageFilter* input = NULL, |
- const CropRect* cropRect = NULL) { |
+ static SkOffsetImageFilter* Create(SkScalar dx, SkScalar dy, SkImageFilter* input = NULL, |
+ const CropRect* cropRect = NULL) { |
if (!SkScalarIsFinite(dx) || !SkScalarIsFinite(dy)) { |
return NULL; |
} |
return new SkOffsetImageFilter(dx, dy, input, cropRect); |
} |
- |
void computeFastBounds(const SkRect& src, SkRect* dst) const override; |
- |
SK_TO_STRING_OVERRIDE() |
SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkOffsetImageFilter) |
protected: |
+ SkOffsetImageFilter(SkScalar dx, SkScalar dy, SkImageFilter* input, const CropRect* cropRect); |
void flatten(SkWriteBuffer&) const override; |
- bool onFilterImage(Proxy*, const SkBitmap& src, const Context&, SkBitmap* result, |
- SkIPoint* loc) const override; |
+ |
+ virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&, |
+ SkBitmap* result, SkIPoint* loc) const override; |
bool onFilterBounds(const SkIRect&, const SkMatrix&, SkIRect*) const override; |
private: |
- SkOffsetImageFilter(SkScalar dx, SkScalar dy, SkImageFilter* input, const CropRect*); |
- |
SkVector fOffset; |
- |
- typedef SkImageFilter INHERITED; |
}; |
#endif |