OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef SkDashPathEffect_DEFINED | 8 #ifndef SkDashPathEffect_DEFINED |
9 #define SkDashPathEffect_DEFINED | 9 #define SkDashPathEffect_DEFINED |
10 | 10 |
(...skipping 29 matching lines...) Expand all Loading... |
40 bool scaleToFit = false); | 40 bool scaleToFit = false); |
41 virtual ~SkDashPathEffect(); | 41 virtual ~SkDashPathEffect(); |
42 | 42 |
43 virtual bool filterPath(SkPath* dst, const SkPath& src, | 43 virtual bool filterPath(SkPath* dst, const SkPath& src, |
44 SkStrokeRec*, const SkRect*) const SK_OVERRIDE; | 44 SkStrokeRec*, const SkRect*) const SK_OVERRIDE; |
45 | 45 |
46 virtual bool asPoints(PointData* results, const SkPath& src, | 46 virtual bool asPoints(PointData* results, const SkPath& src, |
47 const SkStrokeRec&, const SkMatrix&, | 47 const SkStrokeRec&, const SkMatrix&, |
48 const SkRect*) const SK_OVERRIDE; | 48 const SkRect*) const SK_OVERRIDE; |
49 | 49 |
50 virtual Factory getFactory() SK_OVERRIDE; | 50 virtual Factory getFactory() const SK_OVERRIDE; |
51 | 51 |
52 static SkFlattenable* CreateProc(SkFlattenableReadBuffer&); | 52 static SkFlattenable* CreateProc(SkFlattenableReadBuffer&); |
53 | 53 |
54 protected: | 54 protected: |
55 SkDashPathEffect(SkFlattenableReadBuffer&); | 55 SkDashPathEffect(SkFlattenableReadBuffer&); |
56 virtual void flatten(SkFlattenableWriteBuffer&) const SK_OVERRIDE; | 56 virtual void flatten(SkFlattenableWriteBuffer&) const SK_OVERRIDE; |
57 | 57 |
58 private: | 58 private: |
59 SkScalar* fIntervals; | 59 SkScalar* fIntervals; |
60 int32_t fCount; | 60 int32_t fCount; |
61 // computed from phase | 61 // computed from phase |
62 SkScalar fInitialDashLength; | 62 SkScalar fInitialDashLength; |
63 int32_t fInitialDashIndex; | 63 int32_t fInitialDashIndex; |
64 SkScalar fIntervalLength; | 64 SkScalar fIntervalLength; |
65 bool fScaleToFit; | 65 bool fScaleToFit; |
66 | 66 |
67 typedef SkPathEffect INHERITED; | 67 typedef SkPathEffect INHERITED; |
68 }; | 68 }; |
69 | 69 |
70 #endif | 70 #endif |
OLD | NEW |