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

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

Issue 633393002: harden pathops for pathological test (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: exclude new test that asserts in debug 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
53 void set(const SkOpSegment* segment, int start, int end); 61 void set(const SkOpSegment* segment, int start, int end);
54 62
55 void setLastMarked(SkOpSpan* marked) { 63 void setLastMarked(SkOpSpan* marked) {
56 fLastMarked = marked; 64 fLastMarked = marked;
57 } 65 }
58 66
59 SkOpSegment* segment() const { 67 SkOpSegment* segment() const {
60 return const_cast<SkOpSegment*>(fSegment); 68 return const_cast<SkOpSegment*>(fSegment);
61 } 69 }
62 70
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 void reset(); 168 void reset();
161 private: 169 private:
162 void dump() const; // utility to be called by user from debugger 170 void dump() const; // utility to be called by user from debugger
163 SkChunkAlloc* fAngles; 171 SkChunkAlloc* fAngles;
164 #if DEBUG_ANGLE 172 #if DEBUG_ANGLE
165 int fCount; 173 int fCount;
166 #endif 174 #endif
167 }; 175 };
168 176
169 #endif 177 #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