#include <SubsetPath.h>
Definition at line 59 of file SubsetPath.h.
◆ SubsetVerbs()
SubsetVerbs::SubsetVerbs |
( |
const SkPath & |
path | ) |
|
Definition at line 152 of file SubsetPath.cpp.
154 int verbCount = 0;
156 switch (verb) {
158 break;
163 ++verbCount;
164 break;
166 break;
167 default:
169 return;
170 }
171 }
172 for (int index = 0; index < verbCount; ++index) {
174 }
176}
#define SkDEBUGFAIL(message)
@ kClose
SkPath::RawIter returns 0 points.
@ kCubic
SkPath::RawIter returns 4 points.
@ kConic
SkPath::RawIter returns 3 points + 1 weight.
@ kQuad
SkPath::RawIter returns 3 points.
@ kMove
SkPath::RawIter returns 1 point.
@ kLine
SkPath::RawIter returns 2 points.
SubsetPath(const SkPath &path)
SkTDArray< bool > fSelected
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
◆ getSubsetPath()
SkPath SubsetVerbs::getSubsetPath |
( |
| ) |
const |
|
overrideprotectedvirtual |
Implements SubsetPath.
Definition at line 178 of file SubsetPath.cpp.
178 {
183 }
184 int verbIndex = 0;
185 bool addMoveTo = true;
186 bool addLineTo = false;
190 if (enabled) {
191 if (addMoveTo) {
193 addMoveTo = false;
194 } else if (addLineTo) {
196 addLineTo = false;
197 }
198 }
199 switch (verb) {
201 break;
203 if (enabled) {
205 }
206 break;
208 if (enabled) {
209 result.quadTo(pts[1], pts[2]);
210 }
211 break;
213 if (enabled) {
214 result.conicTo(pts[1], pts[2], *
w);
215 }
216 break;
218 if (enabled) {
219 result.cubicTo(pts[1], pts[2], pts[3]);
220 }
221 break;
224 addMoveTo = true;
225 addLineTo = false;
226 continue;
227 default:
230 }
231 addLineTo = !enabled;
232 }
234}
SkPathFillType getFillType() const
The documentation for this class was generated from the following files: