OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 #ifndef SkEdgeBuilder_DEFINED | 8 #ifndef SkEdgeBuilder_DEFINED |
9 #define SkEdgeBuilder_DEFINED | 9 #define SkEdgeBuilder_DEFINED |
10 | 10 |
(...skipping 22 matching lines...) Expand all Loading... |
33 /* | 33 /* |
34 * If we're in general mode, we allcoate the pointers in fList, and this | 34 * If we're in general mode, we allcoate the pointers in fList, and this |
35 * will point at fList.begin(). If we're in polygon mode, fList will be | 35 * will point at fList.begin(). If we're in polygon mode, fList will be |
36 * empty, as we will have preallocated room for the pointers in fAlloc's | 36 * empty, as we will have preallocated room for the pointers in fAlloc's |
37 * block, and fEdgeList will point into that. | 37 * block, and fEdgeList will point into that. |
38 */ | 38 */ |
39 SkEdge** fEdgeList; | 39 SkEdge** fEdgeList; |
40 | 40 |
41 int fShiftUp; | 41 int fShiftUp; |
42 | 42 |
| 43 public: |
43 void addLine(const SkPoint pts[]); | 44 void addLine(const SkPoint pts[]); |
44 void addQuad(const SkPoint pts[]); | 45 void addQuad(const SkPoint pts[]); |
45 void addCubic(const SkPoint pts[]); | 46 void addCubic(const SkPoint pts[]); |
46 void addClipper(SkEdgeClipper*); | 47 void addClipper(SkEdgeClipper*); |
47 | 48 |
48 int buildPoly(const SkPath& path, const SkIRect* clip, int shiftUp); | 49 int buildPoly(const SkPath& path, const SkIRect* clip, int shiftUp); |
49 }; | 50 }; |
50 | 51 |
51 #endif | 52 #endif |
OLD | NEW |