Definition at line 1239 of file PathBench.cpp.
◆ CommonConvexBench()
CommonConvexBench::CommonConvexBench |
( |
int |
w, |
|
|
int |
h, |
|
|
bool |
forceConcave, |
|
|
bool |
aa |
|
) |
| |
|
inline |
Definition at line 1246 of file PathBench.cpp.
1247 fName.
printf(
"convex_path_%d_%d_%d_%d",
w,
h, forceConcave, aa);
1248
1251
1252 if (forceConcave) {
1255 } else {
1257 }
1258 }
static void SetConvexity(const SkPath &path, SkPathConvexity c)
SkPath & addRRect(const SkRRect &rrect, SkPathDirection dir=SkPathDirection::kCW)
static SkRRect MakeRectXY(const SkRect &rect, SkScalar xRad, SkScalar yRad)
void printf(const char format[],...) SK_PRINTF_LIKE(2
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)
◆ onDraw()
void CommonConvexBench::onDraw |
( |
int |
loops, |
|
|
SkCanvas * |
canvas |
|
) |
| |
|
inlineoverrideprotectedvirtual |
Implements Benchmark.
Definition at line 1265 of file PathBench.cpp.
1265 {
1268
1269 for (
int i = 0;
i < loops; ++
i) {
1270 for (int inner = 0; inner < 100; ++inner) {
1272 }
1273 }
1274 }
void drawPath(const SkPath &path, const SkPaint &paint)
◆ onGetName()
const char * CommonConvexBench::onGetName |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ fAA
const bool CommonConvexBench::fAA |
|
protected |
◆ fName
◆ fPath
SkPath CommonConvexBench::fPath |
|
protected |
The documentation for this class was generated from the following file: