| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 | 47 |
| 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 DashType asADash(DashInfo* info) const SK_OVERRIDE; | 52 DashType asADash(DashInfo* info) const SK_OVERRIDE; |
| 53 | 53 |
| 54 SK_TO_STRING_OVERRIDE() | 54 SK_TO_STRING_OVERRIDE() |
| 55 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkDashPathEffect) | 55 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkDashPathEffect) |
| 56 | 56 |
| 57 #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK |
| 58 bool exposedInAndroidJavaAPI() const SK_OVERRIDE { return true; } |
| 59 #endif |
| 60 |
| 57 protected: | 61 protected: |
| 58 SkDashPathEffect(const SkScalar intervals[], int count, SkScalar phase); | 62 SkDashPathEffect(const SkScalar intervals[], int count, SkScalar phase); |
| 59 void flatten(SkWriteBuffer&) const SK_OVERRIDE; | 63 void flatten(SkWriteBuffer&) const SK_OVERRIDE; |
| 60 | 64 |
| 61 private: | 65 private: |
| 62 SkScalar* fIntervals; | 66 SkScalar* fIntervals; |
| 63 int32_t fCount; | 67 int32_t fCount; |
| 64 SkScalar fPhase; | 68 SkScalar fPhase; |
| 65 // computed from phase | 69 // computed from phase |
| 66 SkScalar fInitialDashLength; | 70 SkScalar fInitialDashLength; |
| 67 int32_t fInitialDashIndex; | 71 int32_t fInitialDashIndex; |
| 68 SkScalar fIntervalLength; | 72 SkScalar fIntervalLength; |
| 69 | 73 |
| 70 typedef SkPathEffect INHERITED; | 74 typedef SkPathEffect INHERITED; |
| 71 }; | 75 }; |
| 72 | 76 |
| 73 #endif | 77 #endif |
| OLD | NEW |