diff options
author | 2018-05-21 11:56:57 -0400 | |
---|---|---|
committer | 2018-05-21 17:33:39 +0000 | |
commit | 4dc5a454052e64227ecbfadd903f590d9361be08 (patch) | |
tree | 7d22319f9e739fdc12490ad124d3e19bed5bb2bd /include/effects/SkPaintImageFilter.h | |
parent | 435282162ed6f69f86f8ec2c83ea9b4439a7a7d4 (diff) |
remove defines and add commas
Preparation for generating bookmaker files for all remaining
interfaces
Standardize enum and enum classes by including a comma after
the last entry.
Replace flatten-related #define in public interfaces
with their equivalent.
The motivation is to give documentation something to refer to.
An alternative would be to move part or all of this out of the
public interface; something I can work on in a follow-up CL.
R=reed@google.com,bsalomon@google.com
Bug: skia:6898
Change-Id: I4b865f6ec3d8f5d31e50448fef7d2714510302f0
Reviewed-on: https://skia-review.googlesource.com/129312
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Cary Clark <caryclark@skia.org>
Diffstat (limited to 'include/effects/SkPaintImageFilter.h')
-rw-r--r-- | include/effects/SkPaintImageFilter.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/effects/SkPaintImageFilter.h b/include/effects/SkPaintImageFilter.h index b27c2624b1..bf7c51b50e 100644 --- a/include/effects/SkPaintImageFilter.h +++ b/include/effects/SkPaintImageFilter.h @@ -8,6 +8,7 @@ #ifndef SkPaintImageFilter_DEFINED #define SkPaintImageFilter_DEFINED +#include "SkFlattenable.h" #include "SkImageFilter.h" #include "SkPaint.h" @@ -27,7 +28,8 @@ public: bool affectsTransparentBlack() const override; void toString(SkString* str) const override; - SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkPaintImageFilter) + + Factory getFactory() const override { return CreateProc; } protected: void flatten(SkWriteBuffer&) const override; @@ -37,6 +39,8 @@ protected: private: SkPaintImageFilter(const SkPaint& paint, const CropRect* rect); + static sk_sp<SkFlattenable> CreateProc(SkReadBuffer&); + friend class SkFlattenable::PrivateInitializer; SkPaint fPaint; |