Index: include/effects/SkMergeImageFilter.h |
diff --git a/include/effects/SkMergeImageFilter.h b/include/effects/SkMergeImageFilter.h |
index 10c29131ed425f3c856752932307ddbf7d7555ca..714a755021666c56b2bfe2ee44a5e2bd3fd3c602 100644 |
--- a/include/effects/SkMergeImageFilter.h |
+++ b/include/effects/SkMergeImageFilter.h |
@@ -16,17 +16,16 @@ |
public: |
virtual ~SkMergeImageFilter(); |
- static SkImageFilter* Create(SkImageFilter* first, SkImageFilter* second, |
- SkXfermode::Mode mode = SkXfermode::kSrcOver_Mode, |
- const CropRect* cropRect = NULL) { |
+ static SkMergeImageFilter* Create(SkImageFilter* first, SkImageFilter* second, |
+ SkXfermode::Mode mode = SkXfermode::kSrcOver_Mode, |
+ const CropRect* cropRect = NULL) { |
SkImageFilter* inputs[2] = { first, second }; |
SkXfermode::Mode modes[2] = { mode, mode }; |
return new SkMergeImageFilter(inputs, 2, modes, cropRect); |
} |
- |
- static SkImageFilter* Create(SkImageFilter* filters[], int count, |
- const SkXfermode::Mode modes[] = NULL, |
- const CropRect* cropRect = NULL) { |
+ static SkMergeImageFilter* Create(SkImageFilter* filters[], int count, |
+ const SkXfermode::Mode modes[] = NULL, |
+ const CropRect* cropRect = NULL) { |
return new SkMergeImageFilter(filters, count, modes, cropRect); |
} |
@@ -34,15 +33,16 @@ |
SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkMergeImageFilter) |
protected: |
+ SkMergeImageFilter(SkImageFilter* filters[], int count, |
+ const SkXfermode::Mode modes[], |
+ 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; |
private: |
- SkMergeImageFilter(SkImageFilter* filters[], int count, const SkXfermode::Mode modes[], |
- const CropRect* cropRect); |
- |
- uint8_t* fModes; // SkXfermode::Mode |
+ uint8_t* fModes; // SkXfermode::Mode |
// private storage, to avoid dynamically allocating storage for our copy |
// of the modes (unless the count is so large we can't fit). |