diff options
author | reed <reed@google.com> | 2014-07-21 07:31:53 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-07-21 07:31:53 -0700 |
commit | 3f8540346df30f2b681bcffd42edac15d609aec4 (patch) | |
tree | 7b4fa6a9b1b5ced1efbce118caaa4b8daf062606 /include/effects | |
parent | 1bd6f7de5273f56a361a5b29ac9b448a525f0b9b (diff) |
hide public factory for intermediate class
Use SK_DECLARE_UNFLATTENABLE_OBJECT if the subclass should not be directly instantiated.
TBR=
Author: reed@google.com
Review URL: https://codereview.chromium.org/399383007
Diffstat (limited to 'include/effects')
-rw-r--r-- | include/effects/Sk2DPathEffect.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/include/effects/Sk2DPathEffect.h b/include/effects/Sk2DPathEffect.h index 2adf598012..d9eec720e9 100644 --- a/include/effects/Sk2DPathEffect.h +++ b/include/effects/Sk2DPathEffect.h @@ -14,14 +14,9 @@ class SK_API Sk2DPathEffect : public SkPathEffect { public: - static Sk2DPathEffect* Create(const SkMatrix& mat) { - return SkNEW_ARGS(Sk2DPathEffect, (mat)); - } - - virtual bool filterPath(SkPath*, const SkPath&, - SkStrokeRec*, const SkRect*) const SK_OVERRIDE; + virtual bool filterPath(SkPath*, const SkPath&, SkStrokeRec*, const SkRect*) const SK_OVERRIDE; - SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(Sk2DPathEffect) + SK_DECLARE_UNFLATTENABLE_OBJECT() protected: /** New virtual, to be overridden by subclasses. |