OLD | NEW |
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 SkOpEdgeBuilder_DEFINED | 7 #ifndef SkOpEdgeBuilder_DEFINED |
8 #define SkOpEdgeBuilder_DEFINED | 8 #define SkOpEdgeBuilder_DEFINED |
9 | 9 |
10 #include "SkOpContour.h" | 10 #include "SkOpContour.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 , fContoursHead(contours2) | 30 , fContoursHead(contours2) |
31 , fAllowOpenContours(false) { | 31 , fAllowOpenContours(false) { |
32 init(); | 32 init(); |
33 } | 33 } |
34 | 34 |
35 void addOperand(const SkPath& path); | 35 void addOperand(const SkPath& path); |
36 | 36 |
37 void complete() { | 37 void complete() { |
38 if (fCurrentContour && fCurrentContour->count()) { | 38 if (fCurrentContour && fCurrentContour->count()) { |
39 fCurrentContour->complete(); | 39 fCurrentContour->complete(); |
40 fCurrentContour = NULL; | 40 fCurrentContour = nullptr; |
41 } | 41 } |
42 } | 42 } |
43 | 43 |
44 int count() const; | 44 int count() const; |
45 bool finish(SkChunkAlloc* ); | 45 bool finish(SkChunkAlloc* ); |
46 | 46 |
47 const SkOpContour* head() const { | 47 const SkOpContour* head() const { |
48 return fContoursHead; | 48 return fContoursHead; |
49 } | 49 } |
50 | 50 |
(...skipping 16 matching lines...) Expand all Loading... |
67 SkOpContour* fCurrentContour; | 67 SkOpContour* fCurrentContour; |
68 SkOpContour* fContoursHead; | 68 SkOpContour* fContoursHead; |
69 SkPathOpsMask fXorMask[2]; | 69 SkPathOpsMask fXorMask[2]; |
70 int fSecondHalf; | 70 int fSecondHalf; |
71 bool fOperand; | 71 bool fOperand; |
72 bool fAllowOpenContours; | 72 bool fAllowOpenContours; |
73 bool fUnparseable; | 73 bool fUnparseable; |
74 }; | 74 }; |
75 | 75 |
76 #endif | 76 #endif |
OLD | NEW |