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 933 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
944 kFillType_SerializationShift = 8, // requires 2 bits | 944 kFillType_SerializationShift = 8, // requires 2 bits |
945 kSegmentMask_SerializationShift = 0 // requires 4 bits | 945 kSegmentMask_SerializationShift = 0 // requires 4 bits |
946 }; | 946 }; |
947 | 947 |
948 #if SK_DEBUG_PATH_REF | 948 #if SK_DEBUG_PATH_REF |
949 public: | 949 public: |
950 /** Debugging wrapper for SkAutoTUnref<SkPathRef> used to track owners (SkPa
ths) | 950 /** Debugging wrapper for SkAutoTUnref<SkPathRef> used to track owners (SkPa
ths) |
951 of SkPathRefs */ | 951 of SkPathRefs */ |
952 class PathRefDebugRef { | 952 class PathRefDebugRef { |
953 public: | 953 public: |
954 PathRefDebugRef(SkPath* owner); | |
955 PathRefDebugRef(SkPathRef* pr, SkPath* owner); | 954 PathRefDebugRef(SkPathRef* pr, SkPath* owner); |
956 ~PathRefDebugRef(); | 955 ~PathRefDebugRef(); |
957 void reset(SkPathRef* ref); | 956 void reset(SkPathRef* ref); |
958 void swap(PathRefDebugRef* other); | 957 void swap(PathRefDebugRef* other); |
959 SkPathRef* get() const; | 958 SkPathRef* get() const; |
960 SkAutoTUnref<SkPathRef>::BlockRefType *operator->() const; | 959 SkAutoTUnref<SkPathRef>::BlockRefType *operator->() const; |
961 operator SkPathRef*(); | 960 operator SkPathRef*(); |
962 private: | 961 private: |
963 SkAutoTUnref<SkPathRef> fPathRef; | 962 SkAutoTUnref<SkPathRef> fPathRef; |
964 SkPath* fOwner; | 963 SkPath* fOwner; |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1030 bool isRectContour(bool allowPartial, int* currVerb, const SkPoint** pts, | 1029 bool isRectContour(bool allowPartial, int* currVerb, const SkPoint** pts, |
1031 bool* isClosed, Direction* direction) const; | 1030 bool* isClosed, Direction* direction) const; |
1032 | 1031 |
1033 friend class SkAutoPathBoundsUpdate; | 1032 friend class SkAutoPathBoundsUpdate; |
1034 friend class SkAutoDisableOvalCheck; | 1033 friend class SkAutoDisableOvalCheck; |
1035 friend class SkAutoDisableDirectionCheck; | 1034 friend class SkAutoDisableDirectionCheck; |
1036 friend class SkBench_AddPathTest; // perf test pathTo/reversePathTo | 1035 friend class SkBench_AddPathTest; // perf test pathTo/reversePathTo |
1037 }; | 1036 }; |
1038 | 1037 |
1039 #endif | 1038 #endif |
OLD | NEW |