| 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 Sk1DPathEffect_DEFINED | 8 #ifndef Sk1DPathEffect_DEFINED |
| 9 #define Sk1DPathEffect_DEFINED | 9 #define Sk1DPathEffect_DEFINED |
| 10 | 10 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 position and tangent) | 53 position and tangent) |
| 54 */ | 54 */ |
| 55 SkPath1DPathEffect(const SkPath& path, SkScalar advance, SkScalar phase, Sty
le); | 55 SkPath1DPathEffect(const SkPath& path, SkScalar advance, SkScalar phase, Sty
le); |
| 56 | 56 |
| 57 virtual bool filterPath(SkPath*, const SkPath&, | 57 virtual bool filterPath(SkPath*, const SkPath&, |
| 58 SkStrokeRec*, const SkRect*) const SK_OVERRIDE; | 58 SkStrokeRec*, const SkRect*) const SK_OVERRIDE; |
| 59 | 59 |
| 60 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkPath1DPathEffect) | 60 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkPath1DPathEffect) |
| 61 | 61 |
| 62 protected: | 62 protected: |
| 63 SkPath1DPathEffect(SkFlattenableReadBuffer& buffer); | 63 SkPath1DPathEffect(SkReadBuffer& buffer); |
| 64 virtual void flatten(SkFlattenableWriteBuffer&) const SK_OVERRIDE; | 64 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; |
| 65 | 65 |
| 66 // overrides from Sk1DPathEffect | 66 // overrides from Sk1DPathEffect |
| 67 virtual SkScalar begin(SkScalar contourLength) const SK_OVERRIDE; | 67 virtual SkScalar begin(SkScalar contourLength) const SK_OVERRIDE; |
| 68 virtual SkScalar next(SkPath*, SkScalar, SkPathMeasure&) const SK_OVERRIDE; | 68 virtual SkScalar next(SkPath*, SkScalar, SkPathMeasure&) const SK_OVERRIDE; |
| 69 | 69 |
| 70 private: | 70 private: |
| 71 SkPath fPath; // copied from constructor | 71 SkPath fPath; // copied from constructor |
| 72 SkScalar fAdvance; // copied from constructor | 72 SkScalar fAdvance; // copied from constructor |
| 73 SkScalar fInitialOffset; // computed from phase | 73 SkScalar fInitialOffset; // computed from phase |
| 74 Style fStyle; // copied from constructor | 74 Style fStyle; // copied from constructor |
| 75 | 75 |
| 76 typedef Sk1DPathEffect INHERITED; | 76 typedef Sk1DPathEffect INHERITED; |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 #endif | 79 #endif |
| OLD | NEW |