diff options
author | Cary Clark <caryclark@skia.org> | 2018-05-21 11:56:57 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-05-21 17:33:39 +0000 |
commit | 4dc5a454052e64227ecbfadd903f590d9361be08 (patch) | |
tree | 7d22319f9e739fdc12490ad124d3e19bed5bb2bd /include/effects/SkDiscretePathEffect.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/SkDiscretePathEffect.h')
-rw-r--r-- | include/effects/SkDiscretePathEffect.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/effects/SkDiscretePathEffect.h b/include/effects/SkDiscretePathEffect.h index eb2a994982..252e6de8a3 100644 --- a/include/effects/SkDiscretePathEffect.h +++ b/include/effects/SkDiscretePathEffect.h @@ -8,6 +8,7 @@ #ifndef SkDiscretePathEffect_DEFINED #define SkDiscretePathEffect_DEFINED +#include "SkFlattenable.h" #include "SkPathEffect.h" /** \class SkDiscretePathEffect @@ -35,7 +36,8 @@ public: SkStrokeRec*, const SkRect*) const override; void toString(SkString* str) const override; - SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkDiscretePathEffect) + + Factory getFactory() const override { return CreateProc; } #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK bool exposedInAndroidJavaAPI() const override { return true; } @@ -48,6 +50,9 @@ protected: void flatten(SkWriteBuffer&) const override; private: + static sk_sp<SkFlattenable> CreateProc(SkReadBuffer&); + friend class SkFlattenable::PrivateInitializer; + SkScalar fSegLength, fPerterb; /* Caller-supplied 32 bit seed assist */ |