| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 virtual bool asPoints(PointData* results, const SkPath& src, | 48 virtual bool asPoints(PointData* results, const SkPath& src, |
| 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 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkDashPathEffect) | 54 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkDashPathEffect) |
| 55 | 55 |
| 56 protected: | 56 protected: |
| 57 SkDashPathEffect(const SkScalar intervals[], int count, SkScalar phase); | 57 SkDashPathEffect(const SkScalar intervals[], int count, SkScalar phase); |
| 58 #ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING | |
| 59 explicit SkDashPathEffect(SkReadBuffer&); | |
| 60 #endif | |
| 61 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; | 58 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; |
| 62 | 59 |
| 63 private: | 60 private: |
| 64 SkScalar* fIntervals; | 61 SkScalar* fIntervals; |
| 65 int32_t fCount; | 62 int32_t fCount; |
| 66 SkScalar fPhase; | 63 SkScalar fPhase; |
| 67 // computed from phase | 64 // computed from phase |
| 68 SkScalar fInitialDashLength; | 65 SkScalar fInitialDashLength; |
| 69 int32_t fInitialDashIndex; | 66 int32_t fInitialDashIndex; |
| 70 SkScalar fIntervalLength; | 67 SkScalar fIntervalLength; |
| 71 | 68 |
| 72 typedef SkPathEffect INHERITED; | 69 typedef SkPathEffect INHERITED; |
| 73 }; | 70 }; |
| 74 | 71 |
| 75 #endif | 72 #endif |
| OLD | NEW |