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

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

Issue 2357353002: split tight quads and cubics (Closed)
Patch Set: fix linux build Created 4 years, 3 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/SkOpCoincidence.cpp ('k') | src/pathops/SkOpContour.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 2013 Google Inc. 2 * Copyright 2013 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 SkOpContour_DEFINED 7 #ifndef SkOpContour_DEFINED
8 #define SkOpContour_DEFINED 8 #define SkOpContour_DEFINED
9 9
10 #include "SkOpSegment.h" 10 #include "SkOpSegment.h"
(...skipping 23 matching lines...) Expand all
34 } 34 }
35 35
36 void addConic(SkPoint pts[3], SkScalar weight) { 36 void addConic(SkPoint pts[3], SkScalar weight) {
37 appendSegment().addConic(pts, weight, this); 37 appendSegment().addConic(pts, weight, this);
38 } 38 }
39 39
40 void addCubic(SkPoint pts[4]) { 40 void addCubic(SkPoint pts[4]) {
41 appendSegment().addCubic(pts, this); 41 appendSegment().addCubic(pts, this);
42 } 42 }
43 43
44 SkOpSegment* addCurve(SkPath::Verb verb, const SkPoint pts[4]); 44 SkOpSegment* addCurve(SkPath::Verb verb, const SkPoint pts[4], SkScalar weig ht = 1);
45 45
46 SkOpSegment* addLine(SkPoint pts[2]) { 46 SkOpSegment* addLine(SkPoint pts[2]) {
47 SkASSERT(pts[0] != pts[1]); 47 SkASSERT(pts[0] != pts[1]);
48 return appendSegment().addLine(pts, this); 48 return appendSegment().addLine(pts, this);
49 } 49 }
50 50
51 void addQuad(SkPoint pts[3]) { 51 void addQuad(SkPoint pts[3]) {
52 appendSegment().addQuad(pts, this); 52 appendSegment().addQuad(pts, this);
53 } 53 }
54 54
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 SkASSERT(next); 429 SkASSERT(next);
430 prev = next; 430 prev = next;
431 } 431 }
432 SkASSERT(prev); 432 SkASSERT(prev);
433 prev->setNext(nullptr); 433 prev->setNext(nullptr);
434 } 434 }
435 435
436 }; 436 };
437 437
438 #endif 438 #endif
OLDNEW
« no previous file with comments | « src/pathops/SkOpCoincidence.cpp ('k') | src/pathops/SkOpContour.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698