| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 const SkStrokeRec&, const SkMatrix&, | 49 const SkStrokeRec&, const SkMatrix&, |
| 50 const SkRect*) const SK_OVERRIDE; | 50 const SkRect*) const SK_OVERRIDE; |
| 51 | 51 |
| 52 virtual DashType asADash(DashInfo* info) const SK_OVERRIDE; | 52 virtual DashType asADash(DashInfo* info) const SK_OVERRIDE; |
| 53 | 53 |
| 54 virtual Factory getFactory() const SK_OVERRIDE; | 54 virtual Factory getFactory() const SK_OVERRIDE; |
| 55 | 55 |
| 56 static SkFlattenable* CreateProc(SkReadBuffer&); | 56 static SkFlattenable* CreateProc(SkReadBuffer&); |
| 57 | 57 |
| 58 protected: | 58 protected: |
| 59 SkDashPathEffect(SkReadBuffer&); | 59 SkDashPathEffect(const SkScalar intervals[], int count, SkScalar phase); |
| 60 explicit SkDashPathEffect(SkReadBuffer&); |
| 60 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; | 61 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; |
| 61 | 62 |
| 62 #ifdef SK_SUPPORT_LEGACY_PUBLICEFFECTCONSTRUCTORS | |
| 63 public: | |
| 64 #endif | |
| 65 SkDashPathEffect(const SkScalar intervals[], int count, SkScalar phase); | |
| 66 | |
| 67 private: | 63 private: |
| 68 void setInternalMembers(SkScalar phase); | 64 void setInternalMembers(SkScalar phase); |
| 69 | 65 |
| 70 SkScalar* fIntervals; | 66 SkScalar* fIntervals; |
| 71 int32_t fCount; | 67 int32_t fCount; |
| 72 SkScalar fPhase; | 68 SkScalar fPhase; |
| 73 // computed from phase | 69 // computed from phase |
| 74 SkScalar fInitialDashLength; | 70 SkScalar fInitialDashLength; |
| 75 int32_t fInitialDashIndex; | 71 int32_t fInitialDashIndex; |
| 76 SkScalar fIntervalLength; | 72 SkScalar fIntervalLength; |
| 77 | 73 |
| 78 typedef SkPathEffect INHERITED; | 74 typedef SkPathEffect INHERITED; |
| 79 }; | 75 }; |
| 80 | 76 |
| 81 #endif | 77 #endif |
| OLD | NEW |