| 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 SkPath_DEFINED | 8 #ifndef SkPath_DEFINED |
| 9 #define SkPath_DEFINED | 9 #define SkPath_DEFINED |
| 10 | 10 |
| (...skipping 899 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 910 */ | 910 */ |
| 911 Verb next(SkPoint pts[4]); | 911 Verb next(SkPoint pts[4]); |
| 912 | 912 |
| 913 SkScalar conicWeight() const { return *fConicWeights; } | 913 SkScalar conicWeight() const { return *fConicWeights; } |
| 914 | 914 |
| 915 private: | 915 private: |
| 916 const SkPoint* fPts; | 916 const SkPoint* fPts; |
| 917 const uint8_t* fVerbs; | 917 const uint8_t* fVerbs; |
| 918 const uint8_t* fVerbStop; | 918 const uint8_t* fVerbStop; |
| 919 const SkScalar* fConicWeights; | 919 const SkScalar* fConicWeights; |
| 920 SkPoint fMoveTo; | |
| 921 }; | 920 }; |
| 922 | 921 |
| 923 /** | 922 /** |
| 924 * Returns true if the point { x, y } is contained by the path, taking into | 923 * Returns true if the point { x, y } is contained by the path, taking into |
| 925 * account the FillType. | 924 * account the FillType. |
| 926 */ | 925 */ |
| 927 bool contains(SkScalar x, SkScalar y) const; | 926 bool contains(SkScalar x, SkScalar y) const; |
| 928 | 927 |
| 929 void dump(SkWStream* , bool forceClose, bool dumpAsHex) const; | 928 void dump(SkWStream* , bool forceClose, bool dumpAsHex) const; |
| 930 void dump() const; | 929 void dump() const; |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1036 void setPt(int index, SkScalar x, SkScalar y); | 1035 void setPt(int index, SkScalar x, SkScalar y); |
| 1037 | 1036 |
| 1038 friend class SkAutoPathBoundsUpdate; | 1037 friend class SkAutoPathBoundsUpdate; |
| 1039 friend class SkAutoDisableOvalCheck; | 1038 friend class SkAutoDisableOvalCheck; |
| 1040 friend class SkAutoDisableDirectionCheck; | 1039 friend class SkAutoDisableDirectionCheck; |
| 1041 friend class SkBench_AddPathTest; // perf test reversePathTo | 1040 friend class SkBench_AddPathTest; // perf test reversePathTo |
| 1042 friend class PathTest_Private; // unit test reversePathTo | 1041 friend class PathTest_Private; // unit test reversePathTo |
| 1043 }; | 1042 }; |
| 1044 | 1043 |
| 1045 #endif | 1044 #endif |
| OLD | NEW |