aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/effects
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2017-05-23 23:00:14 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-05-24 03:22:23 +0000
commit76f70622cfe06c2a805d4ff7d1f539e702ec4e46 (patch)
tree2c3a1fb65ed65d7d38197c518330008bc6fe0873 /include/effects
parentd36968bd98b33aec122adf744017053ef11f3479 (diff)
move all details for dashing into impl
Bug: skia: Change-Id: I035603ad75158d9984cce7807bef6a668d9eb014 Reviewed-on: https://skia-review.googlesource.com/17793 Commit-Queue: Mike Reed <reed@google.com> Reviewed-by: Mike Reed <reed@google.com>
Diffstat (limited to 'include/effects')
-rw-r--r--include/effects/SkDashPathEffect.h39
1 files changed, 1 insertions, 38 deletions
diff --git a/include/effects/SkDashPathEffect.h b/include/effects/SkDashPathEffect.h
index 13cbb4def0..f7429563ad 100644
--- a/include/effects/SkDashPathEffect.h
+++ b/include/effects/SkDashPathEffect.h
@@ -10,11 +10,7 @@
#include "SkPathEffect.h"
-/** \class SkDashPathEffect
-
- SkDashPathEffect is a subclass of SkPathEffect that implements dashing
-*/
-class SK_API SkDashPathEffect : public SkPathEffect {
+class SK_API SkDashPathEffect {
public:
/** intervals: array containing an even number of entries (>=2), with
the even indices specifying the length of "on" intervals, and the odd
@@ -37,39 +33,6 @@ public:
Note: only affects stroked paths.
*/
static sk_sp<SkPathEffect> Make(const SkScalar intervals[], int count, SkScalar phase);
-
- virtual bool filterPath(SkPath* dst, const SkPath& src,
- SkStrokeRec*, const SkRect*) const override;
-
- virtual bool asPoints(PointData* results, const SkPath& src,
- const SkStrokeRec&, const SkMatrix&,
- const SkRect*) const override;
-
- DashType asADash(DashInfo* info) const override;
-
- SK_TO_STRING_OVERRIDE()
- SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkDashPathEffect)
-
-#ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK
- bool exposedInAndroidJavaAPI() const override { return true; }
-#endif
-
-protected:
- ~SkDashPathEffect() override;
- SkDashPathEffect(const SkScalar intervals[], int count, SkScalar phase);
- void flatten(SkWriteBuffer&) const override;
-
-private:
- SkScalar* fIntervals;
- int32_t fCount;
- SkScalar fPhase;
- // computed from phase
-
- SkScalar fInitialDashLength;
- int32_t fInitialDashIndex;
- SkScalar fIntervalLength;
-
- typedef SkPathEffect INHERITED;
};
#endif