| 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 Sk2DPathEffect_DEFINED | 8 #ifndef Sk2DPathEffect_DEFINED |
| 9 #define Sk2DPathEffect_DEFINED | 9 #define Sk2DPathEffect_DEFINED |
| 10 | 10 |
| 11 #include "SkPath.h" | 11 #include "SkPath.h" |
| 12 #include "SkPathEffect.h" | 12 #include "SkPathEffect.h" |
| 13 #include "SkMatrix.h" | 13 #include "SkMatrix.h" |
| 14 | 14 |
| 15 class SK_API Sk2DPathEffect : public SkPathEffect { | 15 class SK_API Sk2DPathEffect : public SkPathEffect { |
| 16 public: | 16 public: |
| 17 virtual bool filterPath(SkPath*, const SkPath&, SkStrokeRec*, const SkRect*)
const SK_OVERRIDE; | 17 virtual bool filterPath(SkPath*, const SkPath&, SkStrokeRec*, const SkRect*)
const SK_OVERRIDE; |
| 18 | 18 |
| 19 SK_DECLARE_UNFLATTENABLE_OBJECT() | |
| 20 | |
| 21 protected: | 19 protected: |
| 22 /** New virtual, to be overridden by subclasses. | 20 /** New virtual, to be overridden by subclasses. |
| 23 This is called once from filterPath, and provides the | 21 This is called once from filterPath, and provides the |
| 24 uv parameter bounds for the path. Subsequent calls to | 22 uv parameter bounds for the path. Subsequent calls to |
| 25 next() will receive u and v values within these bounds, | 23 next() will receive u and v values within these bounds, |
| 26 and then a call to end() will signal the end of processing. | 24 and then a call to end() will signal the end of processing. |
| 27 */ | 25 */ |
| 28 virtual void begin(const SkIRect& uvBounds, SkPath* dst) const; | 26 virtual void begin(const SkIRect& uvBounds, SkPath* dst) const; |
| 29 virtual void next(const SkPoint& loc, int u, int v, SkPath* dst) const; | 27 virtual void next(const SkPoint& loc, int u, int v, SkPath* dst) const; |
| 30 virtual void end(SkPath* dst) const; | 28 virtual void end(SkPath* dst) const; |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 | 93 |
| 96 virtual void next(const SkPoint&, int u, int v, SkPath*) const SK_OVERRIDE; | 94 virtual void next(const SkPoint&, int u, int v, SkPath*) const SK_OVERRIDE; |
| 97 | 95 |
| 98 private: | 96 private: |
| 99 SkPath fPath; | 97 SkPath fPath; |
| 100 | 98 |
| 101 typedef Sk2DPathEffect INHERITED; | 99 typedef Sk2DPathEffect INHERITED; |
| 102 }; | 100 }; |
| 103 | 101 |
| 104 #endif | 102 #endif |
| OLD | NEW |