| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |