diff options
author | 2018-05-21 11:56:57 -0400 | |
---|---|---|
committer | 2018-05-21 17:33:39 +0000 | |
commit | 4dc5a454052e64227ecbfadd903f590d9361be08 (patch) | |
tree | 7d22319f9e739fdc12490ad124d3e19bed5bb2bd /src/core/SkLocalMatrixImageFilter.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 'src/core/SkLocalMatrixImageFilter.h')
-rw-r--r-- | src/core/SkLocalMatrixImageFilter.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/SkLocalMatrixImageFilter.h b/src/core/SkLocalMatrixImageFilter.h index 89a7e9d145..f4ca73c185 100644 --- a/src/core/SkLocalMatrixImageFilter.h +++ b/src/core/SkLocalMatrixImageFilter.h @@ -8,6 +8,7 @@ #ifndef SkLocalMatrixImageFilter_DEFINED #define SkLocalMatrixImageFilter_DEFINED +#include "SkFlattenable.h" #include "SkImageFilter.h" /** @@ -19,7 +20,8 @@ public: static sk_sp<SkImageFilter> Make(const SkMatrix& localM, sk_sp<SkImageFilter> input); void toString(SkString* str) const override; - SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkLocalMatrixImageFilter) + + Factory getFactory() const override { return CreateProc; } protected: void flatten(SkWriteBuffer&) const override; @@ -31,6 +33,8 @@ protected: private: SkLocalMatrixImageFilter(const SkMatrix& localM, sk_sp<SkImageFilter> input); + static sk_sp<SkFlattenable> CreateProc(SkReadBuffer&); + friend class SkFlattenable::PrivateInitializer; SkMatrix fLocalM; |