Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Side by Side Diff: src/pathops/SkOpAngle.h

Issue 686843002: Revert of harden pathops for pathological test (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/pathops/SkIntersections.cpp ('k') | src/pathops/SkOpAngle.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2012 Google Inc. 2 * Copyright 2012 Google Inc.
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 #ifndef SkOpAngle_DEFINED 7 #ifndef SkOpAngle_DEFINED
8 #define SkOpAngle_DEFINED 8 #define SkOpAngle_DEFINED
9 9
10 #include "SkChunkAlloc.h" 10 #include "SkChunkAlloc.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 int loopCount() const; 43 int loopCount() const;
44 void markStops(); 44 void markStops();
45 bool merge(SkOpAngle* ); 45 bool merge(SkOpAngle* );
46 46
47 SkOpAngle* next() const { 47 SkOpAngle* next() const {
48 return fNext; 48 return fNext;
49 } 49 }
50 50
51 SkOpAngle* previous() const; 51 SkOpAngle* previous() const;
52 52
53 int sectorEnd() const {
54 return fSectorEnd;
55 }
56
57 int sectorStart() const {
58 return fSectorStart;
59 }
60
61 void set(const SkOpSegment* segment, int start, int end); 53 void set(const SkOpSegment* segment, int start, int end);
62 54
63 void setLastMarked(SkOpSpan* marked) { 55 void setLastMarked(SkOpSpan* marked) {
64 fLastMarked = marked; 56 fLastMarked = marked;
65 } 57 }
66 58
67 SkOpSegment* segment() const { 59 SkOpSegment* segment() const {
68 return const_cast<SkOpSegment*>(fSegment); 60 return const_cast<SkOpSegment*>(fSegment);
69 } 61 }
70 62
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 void reset(); 160 void reset();
169 private: 161 private:
170 void dump() const; // utility to be called by user from debugger 162 void dump() const; // utility to be called by user from debugger
171 SkChunkAlloc* fAngles; 163 SkChunkAlloc* fAngles;
172 #if DEBUG_ANGLE 164 #if DEBUG_ANGLE
173 int fCount; 165 int fCount;
174 #endif 166 #endif
175 }; 167 };
176 168
177 #endif 169 #endif
OLDNEW
« no previous file with comments | « src/pathops/SkIntersections.cpp ('k') | src/pathops/SkOpAngle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698