OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #ifndef SkPath_DEFINED | 10 #ifndef SkPath_DEFINED |
(...skipping 913 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
924 SkPoint fMoveTo; | 924 SkPoint fMoveTo; |
925 SkPoint fLastPt; | 925 SkPoint fLastPt; |
926 }; | 926 }; |
927 | 927 |
928 /** | 928 /** |
929 * Returns true if the point { x, y } is contained by the path, taking into | 929 * Returns true if the point { x, y } is contained by the path, taking into |
930 * account the FillType. | 930 * account the FillType. |
931 */ | 931 */ |
932 bool contains(SkScalar x, SkScalar y) const; | 932 bool contains(SkScalar x, SkScalar y) const; |
933 | 933 |
934 void dump(SkWStream* , bool forceClose) const; | 934 void dump(SkWStream* , bool forceClose, bool dumpAsHex) const; |
935 void dump() const; | 935 void dump() const; |
| 936 void dumpHex() const; |
936 | 937 |
937 /** | 938 /** |
938 * Write the path to the buffer, and return the number of bytes written. | 939 * Write the path to the buffer, and return the number of bytes written. |
939 * If buffer is NULL, it still returns the number of bytes. | 940 * If buffer is NULL, it still returns the number of bytes. |
940 */ | 941 */ |
941 size_t writeToMemory(void* buffer) const; | 942 size_t writeToMemory(void* buffer) const; |
942 /** | 943 /** |
943 * Initializes the path from the buffer | 944 * Initializes the path from the buffer |
944 * | 945 * |
945 * @param buffer Memory to read from | 946 * @param buffer Memory to read from |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1041 } | 1042 } |
1042 | 1043 |
1043 friend class SkAutoPathBoundsUpdate; | 1044 friend class SkAutoPathBoundsUpdate; |
1044 friend class SkAutoDisableOvalCheck; | 1045 friend class SkAutoDisableOvalCheck; |
1045 friend class SkAutoDisableDirectionCheck; | 1046 friend class SkAutoDisableDirectionCheck; |
1046 friend class SkBench_AddPathTest; // perf test reversePathTo | 1047 friend class SkBench_AddPathTest; // perf test reversePathTo |
1047 friend class PathTest_Private; // unit test reversePathTo | 1048 friend class PathTest_Private; // unit test reversePathTo |
1048 }; | 1049 }; |
1049 | 1050 |
1050 #endif | 1051 #endif |
OLD | NEW |