| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 Style style) { | 56 Style style) { |
| 57 return SkNEW_ARGS(SkPath1DPathEffect, (path, advance, phase, style)); | 57 return SkNEW_ARGS(SkPath1DPathEffect, (path, advance, phase, style)); |
| 58 } | 58 } |
| 59 | 59 |
| 60 virtual bool filterPath(SkPath*, const SkPath&, | 60 virtual bool filterPath(SkPath*, const SkPath&, |
| 61 SkStrokeRec*, const SkRect*) const SK_OVERRIDE; | 61 SkStrokeRec*, const SkRect*) const SK_OVERRIDE; |
| 62 | 62 |
| 63 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkPath1DPathEffect) | 63 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkPath1DPathEffect) |
| 64 | 64 |
| 65 protected: | 65 protected: |
| 66 SkPath1DPathEffect(SkReadBuffer& buffer); | 66 SkPath1DPathEffect(const SkPath& path, SkScalar advance, SkScalar phase, Sty
le); |
| 67 explicit SkPath1DPathEffect(SkReadBuffer& buffer); |
| 67 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; | 68 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; |
| 68 | 69 |
| 69 // overrides from Sk1DPathEffect | 70 // overrides from Sk1DPathEffect |
| 70 virtual SkScalar begin(SkScalar contourLength) const SK_OVERRIDE; | 71 virtual SkScalar begin(SkScalar contourLength) const SK_OVERRIDE; |
| 71 virtual SkScalar next(SkPath*, SkScalar, SkPathMeasure&) const SK_OVERRIDE; | 72 virtual SkScalar next(SkPath*, SkScalar, SkPathMeasure&) const SK_OVERRIDE; |
| 72 | 73 |
| 73 #ifdef SK_SUPPORT_LEGACY_PUBLICEFFECTCONSTRUCTORS | |
| 74 public: | |
| 75 #endif | |
| 76 SkPath1DPathEffect(const SkPath& path, SkScalar advance, SkScalar phase, Sty
le); | |
| 77 | |
| 78 private: | 74 private: |
| 79 SkPath fPath; // copied from constructor | 75 SkPath fPath; // copied from constructor |
| 80 SkScalar fAdvance; // copied from constructor | 76 SkScalar fAdvance; // copied from constructor |
| 81 SkScalar fInitialOffset; // computed from phase | 77 SkScalar fInitialOffset; // computed from phase |
| 82 Style fStyle; // copied from constructor | 78 Style fStyle; // copied from constructor |
| 83 | 79 |
| 84 typedef Sk1DPathEffect INHERITED; | 80 typedef Sk1DPathEffect INHERITED; |
| 85 }; | 81 }; |
| 86 | 82 |
| 87 #endif | 83 #endif |
| OLD | NEW |