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

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

Issue 1129193006: fix winding for path ops builder (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix compile bug Created 5 years, 7 months 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/SkOpContour.cpp ('k') | src/pathops/SkOpSegment.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 SkOpSegment_DEFINE 7 #ifndef SkOpSegment_DEFINE
8 #define SkOpSegment_DEFINE 8 #define SkOpSegment_DEFINE
9 9
10 #include "SkOpAngle.h" 10 #include "SkOpAngle.h"
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 bool isVertical(SkOpSpanBase* start, SkOpSpanBase* end) const { 224 bool isVertical(SkOpSpanBase* start, SkOpSpanBase* end) const {
225 return (*CurveIsVertical[fVerb])(fPts, fWeight, start->t(), end->t()); 225 return (*CurveIsVertical[fVerb])(fPts, fWeight, start->t(), end->t());
226 } 226 }
227 227
228 bool isXor() const; 228 bool isXor() const;
229 229
230 const SkPoint& lastPt() const { 230 const SkPoint& lastPt() const {
231 return fPts[SkPathOpsVerbToPoints(fVerb)]; 231 return fPts[SkPathOpsVerbToPoints(fVerb)];
232 } 232 }
233 233
234 void markAllDone();
234 SkOpSpanBase* markAndChaseDone(SkOpSpanBase* start, SkOpSpanBase* end); 235 SkOpSpanBase* markAndChaseDone(SkOpSpanBase* start, SkOpSpanBase* end);
235 bool markAndChaseWinding(SkOpSpanBase* start, SkOpSpanBase* end, int winding , 236 bool markAndChaseWinding(SkOpSpanBase* start, SkOpSpanBase* end, int winding ,
236 SkOpSpanBase** lastPtr); 237 SkOpSpanBase** lastPtr);
237 bool markAndChaseWinding(SkOpSpanBase* start, SkOpSpanBase* end, int winding , 238 bool markAndChaseWinding(SkOpSpanBase* start, SkOpSpanBase* end, int winding ,
238 int oppWinding, SkOpSpanBase** lastPtr); 239 int oppWinding, SkOpSpanBase** lastPtr);
239 SkOpSpanBase* markAngle(int maxWinding, int sumWinding, const SkOpAngle* ang le); 240 SkOpSpanBase* markAngle(int maxWinding, int sumWinding, const SkOpAngle* ang le);
240 SkOpSpanBase* markAngle(int maxWinding, int sumWinding, int oppMaxWinding, i nt oppSumWinding, 241 SkOpSpanBase* markAngle(int maxWinding, int sumWinding, int oppMaxWinding, i nt oppSumWinding,
241 const SkOpAngle* angle); 242 const SkOpAngle* angle);
242 void markDone(SkOpSpan* ); 243 void markDone(SkOpSpan* );
243 bool markWinding(SkOpSpan* , int winding); 244 bool markWinding(SkOpSpan* , int winding);
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 int fCount; // number of spans (one for a non-intersecting segment) 392 int fCount; // number of spans (one for a non-intersecting segment)
392 int fDoneCount; // number of processed spans (zero initially) 393 int fDoneCount; // number of processed spans (zero initially)
393 SkPath::Verb fVerb; 394 SkPath::Verb fVerb;
394 SkDCubic::CubicType fCubicType; 395 SkDCubic::CubicType fCubicType;
395 bool fTopsFound; 396 bool fTopsFound;
396 bool fVisited; // used by missing coincidence check 397 bool fVisited; // used by missing coincidence check
397 SkDEBUGCODE(int fID); 398 SkDEBUGCODE(int fID);
398 }; 399 };
399 400
400 #endif 401 #endif
OLDNEW
« no previous file with comments | « src/pathops/SkOpContour.cpp ('k') | src/pathops/SkOpSegment.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698