#include <SubsetPath.h>
Definition at line 52 of file SubsetPath.h.
◆ SubsetContours()
SubsetContours::SubsetContours |
( |
const SkPath & |
path | ) |
|
Definition at line 67 of file SubsetPath.cpp.
69 bool foundCurve = false;
70 int contourCount = 0;
72 switch (verb) {
74 break;
79 foundCurve = true;
80 break;
82 ++contourCount;
83 foundCurve = false;
84 break;
85 default:
87 return;
88 }
89 }
90 contourCount += foundCurve;
91 for (int index = 0; index < contourCount; ++index) {
93 }
95}
#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 SubsetContours::getSubsetPath |
( |
| ) |
const |
|
overrideprotectedvirtual |
Implements SubsetPath.
Definition at line 97 of file SubsetPath.cpp.
97 {
102 }
103 int contourCount = 0;
105 bool addMoveTo = true;
107 if (enabled && addMoveTo) {
109 addMoveTo = false;
110 }
111 switch (verb) {
113 break;
115 if (enabled) {
117 }
118 break;
120 if (enabled) {
121 result.quadTo(pts[1], pts[2]);
122 }
123 break;
125 if (enabled) {
126 result.conicTo(pts[1], pts[2], *
w);
127 }
128 break;
130 if (enabled) {
131 result.cubicTo(pts[1], pts[2], pts[3]);
132 }
133 break;
135 if (enabled) {
137 }
139 break;
140 }
142 addMoveTo = true;
143 continue;
144 default:
147 }
148 }
150}
SkPathFillType getFillType() const
The documentation for this class was generated from the following files: