Go to the source code of this file.
◆ MakeType
◆ DEF_BENCH()
Definition at line 95 of file PathOpsBench.cpp.
99 {
102 int fPIndex = 0, fVIndex = 0;
103
104 void moveTo(
float x,
float y) {
107 }
108 void lineTo(
float x,
float y) {
111 }
112 void quadTo(
float x,
float y,
float x1,
float y1) {
115 fPts[fPIndex++] = {x1, y1};
116 }
117 void cubicTo(
float x,
float y,
float x1,
float y1,
float x2,
float y2) {
120 fPts[fPIndex++] = {x1, y1};
121 fPts[fPIndex++] = {x2, y2};
122 }
123 void incReserve(int) {}
124};
@ kCubic
SkPath::RawIter returns 4 points.
@ kQuad
SkPath::RawIter returns 3 points.
@ kMove
SkPath::RawIter returns 1 point.
@ kLine
SkPath::RawIter returns 2 points.
◆ makerects()
Definition at line 84 of file PathOpsBench.cpp.
84 {
88 for (
int i = 0;
i < 20; ++
i) {
92 }
94}
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
◆ run_builder()
void run_builder |
( |
T & |
b, |
|
|
bool |
useReserve, |
|
|
int |
N |
|
) |
| |
Definition at line 126 of file PathOpsBench.cpp.
126 {
127 if (useReserve) {
128 b.incReserve(
N * 12);
129 }
130
133 for (
int i = 1;
i <
N; ++
i) {
135 b.quadTo(
x,
y,
x,
y);
137 }
138}