Definition at line 30 of file TriangulatorBench.cpp.
◆ TriangulatorBenchmark()
TriangulatorBenchmark::TriangulatorBenchmark |
( |
const char * |
name | ) |
|
|
inline |
Definition at line 32 of file TriangulatorBench.cpp.
32 {
34 }
void printf(const char format[],...) SK_PRINTF_LIKE(2
DEF_SWITCHES_START aot vmservice shared library name
◆ doLoop()
virtual void TriangulatorBenchmark::doLoop |
( |
| ) |
|
|
protectedpure virtual |
◆ isSuitableFor()
bool TriangulatorBenchmark::isSuitableFor |
( |
Backend |
backend | ) |
|
|
inlinefinalvirtual |
◆ lock()
void * TriangulatorBenchmark::lock |
( |
size_t |
stride, |
|
|
int |
eagerCount |
|
) |
| |
|
inlineoverrideprotectedvirtual |
◆ onDelayedSetup()
void TriangulatorBenchmark::onDelayedSetup |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from Benchmark.
Definition at line 40 of file TriangulatorBench.cpp.
40 {
44 int ptsIdx = 0;
46 switch (*v) {
47 case 'm':
48 path.moveTo(pts[ptsIdx]);
49 ++ptsIdx;
50 break;
51 case 'l':
52 path.lineTo(pts[ptsIdx]);
53 ++ptsIdx;
54 break;
55 case 'q':
56 path.quadTo(pts[ptsIdx], pts[ptsIdx + 1]);
57 ptsIdx += 2;
58 break;
59 case 'c':
60 path.cubicTo(pts[ptsIdx], pts[ptsIdx + 1], pts[ptsIdx + 2]);
61 ptsIdx += 3;
62 break;
63 case 'z':
65 break;
66 }
67 }
69 }
70 }
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
std::vector< SkPoint > fPoints
◆ onDraw()
void TriangulatorBenchmark::onDraw |
( |
int |
loops, |
|
|
SkCanvas * |
|
|
) |
| |
|
inlinefinalprotectedvirtual |
◆ onGetName()
const char * TriangulatorBenchmark::onGetName |
( |
| ) |
|
|
inlineoverridevirtual |
◆ unlock()
void TriangulatorBenchmark::unlock |
( |
int |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ fArena
◆ fName
◆ fPaths
◆ fVertexAllocSize
size_t TriangulatorBenchmark::fVertexAllocSize = 0 |
|
protected |
◆ fVertexData
The documentation for this class was generated from the following file: