2020-04-23 21:52:24 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2020 Google Inc.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
|
|
* found in the LICENSE file.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "bench/Benchmark.h"
|
2020-07-06 17:45:34 +00:00
|
|
|
#include "include/gpu/GrDirectContext.h"
|
2020-05-14 01:18:46 +00:00
|
|
|
#include "src/core/SkPathPriv.h"
|
2020-10-14 15:23:11 +00:00
|
|
|
#include "src/gpu/GrDirectContextPriv.h"
|
2020-04-23 21:52:24 +00:00
|
|
|
#include "src/gpu/GrOpFlushState.h"
|
2020-11-09 21:13:39 +00:00
|
|
|
#include "src/gpu/mock/GrMockOpTarget.h"
|
2020-05-24 20:55:54 +00:00
|
|
|
#include "src/gpu/tessellate/GrMiddleOutPolygonTriangulator.h"
|
2020-07-31 01:50:46 +00:00
|
|
|
#include "src/gpu/tessellate/GrPathTessellateOp.h"
|
2020-12-09 23:46:22 +00:00
|
|
|
#include "src/gpu/tessellate/GrStrokeIndirectOp.h"
|
2020-11-03 21:09:16 +00:00
|
|
|
#include "src/gpu/tessellate/GrStrokeTessellateOp.h"
|
2020-05-14 01:18:46 +00:00
|
|
|
#include "src/gpu/tessellate/GrWangsFormula.h"
|
2020-04-28 05:40:03 +00:00
|
|
|
#include "tools/ToolUtils.h"
|
2020-12-09 23:46:22 +00:00
|
|
|
#include <vector>
|
2020-04-23 21:52:24 +00:00
|
|
|
|
|
|
|
// This is the number of cubics in desk_chalkboard.skp. (There are no quadratics in the chalkboard.)
|
|
|
|
constexpr static int kNumCubicsInChalkboard = 47182;
|
|
|
|
|
2020-11-09 21:13:39 +00:00
|
|
|
static sk_sp<GrDirectContext> make_mock_context() {
|
|
|
|
GrMockOptions mockOptions;
|
|
|
|
mockOptions.fDrawInstancedSupport = true;
|
|
|
|
mockOptions.fMaxTessellationSegments = 64;
|
|
|
|
mockOptions.fMapBufferFlags = GrCaps::kCanMap_MapFlag;
|
|
|
|
mockOptions.fConfigOptions[(int)GrColorType::kAlpha_8].fRenderability =
|
|
|
|
GrMockOptions::ConfigOptions::Renderability::kMSAA;
|
|
|
|
mockOptions.fConfigOptions[(int)GrColorType::kAlpha_8].fTexturable = true;
|
|
|
|
mockOptions.fIntegerSupport = true;
|
|
|
|
|
|
|
|
GrContextOptions ctxOptions;
|
|
|
|
ctxOptions.fGpuPathRenderers = GpuPathRenderers::kTessellation;
|
2020-12-16 02:55:10 +00:00
|
|
|
ctxOptions.fSuppressTessellationShaders = false;
|
2020-11-09 21:13:39 +00:00
|
|
|
|
|
|
|
return GrDirectContext::MakeMock(&mockOptions, ctxOptions);
|
|
|
|
}
|
|
|
|
|
2020-04-23 21:52:24 +00:00
|
|
|
static SkPath make_cubic_path() {
|
|
|
|
SkRandom rand;
|
|
|
|
SkPath path;
|
|
|
|
for (int i = 0; i < kNumCubicsInChalkboard/2; ++i) {
|
2020-05-13 23:57:37 +00:00
|
|
|
float x = std::ldexp(rand.nextF(), (i % 18)) / 1e3f;
|
2020-04-23 21:52:24 +00:00
|
|
|
path.cubicTo(111.625f*x, 308.188f*x, 764.62f*x, -435.688f*x, 742.63f*x, 85.187f*x);
|
|
|
|
path.cubicTo(764.62f*x, -435.688f*x, 111.625f*x, 308.188f*x, 0, 0);
|
|
|
|
}
|
|
|
|
return path;
|
|
|
|
}
|
|
|
|
|
2020-07-31 01:50:46 +00:00
|
|
|
// This serves as a base class for benchmarking individual methods on GrPathTessellateOp.
|
2021-01-15 20:12:50 +00:00
|
|
|
class PathTessellateBenchmark : public Benchmark {
|
2020-04-23 21:52:24 +00:00
|
|
|
public:
|
2021-01-15 20:12:50 +00:00
|
|
|
PathTessellateBenchmark(const char* subName, const SkPath& p, const SkMatrix& m)
|
|
|
|
: fPath(p), fMatrix(m) {
|
2020-04-23 21:52:24 +00:00
|
|
|
fName.printf("tessellate_%s", subName);
|
|
|
|
}
|
|
|
|
|
|
|
|
const char* onGetName() override { return fName.c_str(); }
|
|
|
|
bool isSuitableFor(Backend backend) final { return backend == kNonRendering_Backend; }
|
|
|
|
|
2021-01-15 20:12:50 +00:00
|
|
|
protected:
|
2020-11-03 21:09:16 +00:00
|
|
|
void onDelayedSetup() override {
|
2020-11-09 21:13:39 +00:00
|
|
|
fTarget = std::make_unique<GrMockOpTarget>(make_mock_context());
|
2020-11-03 21:09:16 +00:00
|
|
|
}
|
|
|
|
|
2020-04-23 21:52:24 +00:00
|
|
|
void onDraw(int loops, SkCanvas*) final {
|
2020-11-03 21:09:16 +00:00
|
|
|
if (!fTarget->mockContext()) {
|
2020-05-27 15:43:34 +00:00
|
|
|
SkDebugf("ERROR: could not create mock context.");
|
|
|
|
return;
|
|
|
|
}
|
2020-04-23 21:52:24 +00:00
|
|
|
for (int i = 0; i < loops; ++i) {
|
2021-01-15 20:12:50 +00:00
|
|
|
this->runBench();
|
2020-11-03 21:09:16 +00:00
|
|
|
fTarget->resetAllocator();
|
2020-04-23 21:52:24 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-15 20:12:50 +00:00
|
|
|
virtual void runBench() = 0;
|
2020-04-23 21:52:24 +00:00
|
|
|
|
|
|
|
SkString fName;
|
2021-01-15 20:12:50 +00:00
|
|
|
std::unique_ptr<GrMockOpTarget> fTarget;
|
|
|
|
const SkPath fPath;
|
|
|
|
const SkMatrix& fMatrix;
|
2020-04-23 21:52:24 +00:00
|
|
|
};
|
|
|
|
|
2021-01-15 20:12:50 +00:00
|
|
|
#define DEF_PATH_TESS_BENCH(NAME, PATH, MATRIX) \
|
|
|
|
class PathTessellateBenchmark_##NAME : public PathTessellateBenchmark { \
|
2020-05-24 20:55:54 +00:00
|
|
|
public: \
|
2021-01-15 20:12:50 +00:00
|
|
|
PathTessellateBenchmark_##NAME() : PathTessellateBenchmark(#NAME, (PATH), (MATRIX)) {} \
|
|
|
|
void runBench() override; \
|
2020-05-24 20:55:54 +00:00
|
|
|
}; \
|
2021-01-15 20:12:50 +00:00
|
|
|
DEF_BENCH( return new PathTessellateBenchmark_##NAME(); ); \
|
|
|
|
void PathTessellateBenchmark_##NAME::runBench()
|
2020-05-14 01:18:46 +00:00
|
|
|
|
2021-01-15 20:12:50 +00:00
|
|
|
DEF_PATH_TESS_BENCH(GrPathIndirectTessellator, make_cubic_path(), SkMatrix::I()) {
|
|
|
|
GrPathIndirectTessellator tess(fMatrix, fPath, GrPathIndirectTessellator::DrawInnerFan::kNo);
|
|
|
|
tess.prepare(fTarget.get(), fMatrix, fPath);
|
2020-05-24 20:55:54 +00:00
|
|
|
}
|
2020-05-24 20:06:12 +00:00
|
|
|
|
2021-01-15 20:12:50 +00:00
|
|
|
DEF_PATH_TESS_BENCH(GrPathOuterCurveTessellator, make_cubic_path(), SkMatrix::I()) {
|
|
|
|
GrPathOuterCurveTessellator tess;
|
|
|
|
tess.prepare(fTarget.get(), fMatrix, fPath);
|
2020-05-24 20:55:54 +00:00
|
|
|
}
|
2020-05-21 21:50:48 +00:00
|
|
|
|
2021-01-15 20:12:50 +00:00
|
|
|
DEF_PATH_TESS_BENCH(GrPathWedgeTessellator, make_cubic_path(), SkMatrix::I()) {
|
|
|
|
GrPathWedgeTessellator tess;
|
|
|
|
tess.prepare(fTarget.get(), fMatrix, fPath);
|
2020-05-24 20:55:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static void benchmark_wangs_formula_cubic_log2(const SkMatrix& matrix, const SkPath& path) {
|
|
|
|
int sum = 0;
|
|
|
|
GrVectorXform xform(matrix);
|
|
|
|
for (auto [verb, pts, w] : SkPathPriv::Iterate(path)) {
|
|
|
|
if (verb == SkPathVerb::kCubic) {
|
|
|
|
sum += GrWangsFormula::cubic_log2(4, pts, xform);
|
|
|
|
}
|
2020-05-24 20:48:56 +00:00
|
|
|
}
|
2020-05-24 20:55:54 +00:00
|
|
|
// Don't let the compiler optimize away GrWangsFormula::cubic_log2.
|
|
|
|
if (sum <= 0) {
|
|
|
|
SK_ABORT("sum should be > 0.");
|
2020-05-24 20:48:56 +00:00
|
|
|
}
|
2020-05-24 20:55:54 +00:00
|
|
|
}
|
2020-05-24 20:06:12 +00:00
|
|
|
|
2021-01-15 20:12:50 +00:00
|
|
|
DEF_PATH_TESS_BENCH(wangs_formula_cubic_log2, make_cubic_path(), SkMatrix::I()) {
|
|
|
|
benchmark_wangs_formula_cubic_log2(fMatrix, fPath);
|
2020-05-24 20:55:54 +00:00
|
|
|
}
|
2020-05-24 20:06:12 +00:00
|
|
|
|
2021-01-15 20:12:50 +00:00
|
|
|
DEF_PATH_TESS_BENCH(wangs_formula_cubic_log2_scale, make_cubic_path(),
|
|
|
|
SkMatrix::Scale(1.1f, 0.9f)) {
|
|
|
|
benchmark_wangs_formula_cubic_log2(fMatrix, fPath);
|
2020-05-24 20:55:54 +00:00
|
|
|
}
|
|
|
|
|
2020-09-23 17:07:20 +00:00
|
|
|
DEF_PATH_TESS_BENCH(wangs_formula_cubic_log2_affine, make_cubic_path(),
|
2021-01-15 20:12:50 +00:00
|
|
|
SkMatrix::MakeAll(.9f,0.9f,0, 1.1f,1.1f,0, 0,0,1)) {
|
|
|
|
benchmark_wangs_formula_cubic_log2(fMatrix, fPath);
|
2020-05-24 20:55:54 +00:00
|
|
|
}
|
|
|
|
|
2020-09-23 17:07:20 +00:00
|
|
|
DEF_PATH_TESS_BENCH(middle_out_triangulation,
|
|
|
|
ToolUtils::make_star(SkRect::MakeWH(500, 500), kNumCubicsInChalkboard),
|
2021-01-15 20:12:50 +00:00
|
|
|
SkMatrix::I()) {
|
2020-05-24 20:55:54 +00:00
|
|
|
int baseVertex;
|
2021-01-15 20:12:50 +00:00
|
|
|
auto vertexData = static_cast<SkPoint*>(fTarget->makeVertexSpace(
|
2020-05-24 20:55:54 +00:00
|
|
|
sizeof(SkPoint), kNumCubicsInChalkboard, nullptr, &baseVertex));
|
2021-01-15 20:12:50 +00:00
|
|
|
GrMiddleOutPolygonTriangulator::WritePathInnerFan(vertexData, 3, fPath);
|
2020-05-24 20:55:54 +00:00
|
|
|
}
|
2020-09-23 17:07:20 +00:00
|
|
|
|
2020-11-03 21:09:16 +00:00
|
|
|
class GrStrokeTessellateOp::TestingOnly_Benchmark : public Benchmark {
|
2020-11-02 19:43:06 +00:00
|
|
|
public:
|
2020-11-03 21:09:16 +00:00
|
|
|
TestingOnly_Benchmark(float matrixScale, const char* suffix) : fMatrixScale(matrixScale) {
|
|
|
|
fName.printf("tessellate_GrStrokeTessellateOp_prepare%s", suffix);
|
2020-11-02 19:43:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
private:
|
|
|
|
const char* onGetName() override { return fName.c_str(); }
|
2020-09-23 17:07:20 +00:00
|
|
|
bool isSuitableFor(Backend backend) final { return backend == kNonRendering_Backend; }
|
|
|
|
|
|
|
|
void onDelayedSetup() override {
|
2020-11-09 21:13:39 +00:00
|
|
|
fTarget = std::make_unique<GrMockOpTarget>(make_mock_context());
|
2020-09-23 17:07:20 +00:00
|
|
|
fPath.reset().moveTo(0, 0);
|
|
|
|
for (int i = 0; i < kNumCubicsInChalkboard/2; ++i) {
|
2020-11-02 19:43:06 +00:00
|
|
|
fPath.cubicTo(100, 0, 50, 100, 100, 100);
|
|
|
|
fPath.cubicTo(0, -100, 200, 100, 0, 0);
|
2020-09-23 17:07:20 +00:00
|
|
|
}
|
|
|
|
fStrokeRec.setStrokeStyle(8);
|
|
|
|
fStrokeRec.setStrokeParams(SkPaint::kButt_Cap, SkPaint::kMiter_Join, 4);
|
|
|
|
}
|
|
|
|
|
|
|
|
void onDraw(int loops, SkCanvas*) final {
|
2020-11-03 21:09:16 +00:00
|
|
|
if (!fTarget->mockContext()) {
|
2020-09-23 17:07:20 +00:00
|
|
|
SkDebugf("ERROR: could not create mock context.");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
for (int i = 0; i < loops; ++i) {
|
2020-11-03 21:09:16 +00:00
|
|
|
GrStrokeTessellateOp op(GrAAType::kMSAA, SkMatrix::Scale(fMatrixScale, fMatrixScale),
|
|
|
|
fStrokeRec, fPath, GrPaint());
|
|
|
|
op.fTarget = fTarget.get();
|
|
|
|
op.prepareBuffers();
|
2020-09-23 17:07:20 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-02 19:43:06 +00:00
|
|
|
const float fMatrixScale;
|
|
|
|
SkString fName;
|
2020-11-09 21:13:39 +00:00
|
|
|
std::unique_ptr<GrMockOpTarget> fTarget;
|
2020-09-23 17:07:20 +00:00
|
|
|
SkPath fPath;
|
|
|
|
SkStrokeRec fStrokeRec = SkStrokeRec(SkStrokeRec::kFill_InitStyle);
|
|
|
|
};
|
|
|
|
|
2020-11-03 21:09:16 +00:00
|
|
|
DEF_BENCH( return new GrStrokeTessellateOp::TestingOnly_Benchmark(1, ""); )
|
|
|
|
DEF_BENCH( return new GrStrokeTessellateOp::TestingOnly_Benchmark(5, "_one_chop"); )
|
2020-12-09 23:46:22 +00:00
|
|
|
|
|
|
|
class GrStrokeIndirectOp::Benchmark : public ::Benchmark {
|
2020-12-28 16:02:47 +00:00
|
|
|
protected:
|
|
|
|
Benchmark(const char* nameSuffix, SkPaint::Join join) : fJoin(join) {
|
2020-12-09 23:46:22 +00:00
|
|
|
fName.printf("tessellate_GrStrokeIndirectOpBench%s", nameSuffix);
|
|
|
|
}
|
|
|
|
|
2020-12-28 16:02:47 +00:00
|
|
|
const SkPaint::Join fJoin;
|
|
|
|
|
2020-12-09 23:46:22 +00:00
|
|
|
private:
|
2020-12-28 16:02:47 +00:00
|
|
|
const char* onGetName() final { return fName.c_str(); }
|
2020-12-09 23:46:22 +00:00
|
|
|
bool isSuitableFor(Backend backend) final { return backend == kNonRendering_Backend; }
|
2020-12-28 16:02:47 +00:00
|
|
|
void onDelayedSetup() final {
|
2020-12-09 23:46:22 +00:00
|
|
|
fTarget = std::make_unique<GrMockOpTarget>(make_mock_context());
|
2020-12-28 16:02:47 +00:00
|
|
|
fStrokeRec.setStrokeStyle(8);
|
|
|
|
fStrokeRec.setStrokeParams(SkPaint::kButt_Cap, fJoin, 4);
|
|
|
|
this->setupPaths(&fPaths);
|
|
|
|
}
|
|
|
|
void onDraw(int loops, SkCanvas*) final {
|
|
|
|
if (!fTarget->mockContext()) {
|
|
|
|
SkDebugf("ERROR: could not create mock context.");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
for (int i = 0; i < loops; ++i) {
|
|
|
|
for (const SkPath& path : fPaths) {
|
|
|
|
GrStrokeIndirectOp op(GrAAType::kMSAA, SkMatrix::I(), path, fStrokeRec, GrPaint());
|
|
|
|
op.prePrepareResolveLevels(fTarget->allocator());
|
|
|
|
op.prepareBuffers(fTarget.get());
|
|
|
|
}
|
|
|
|
fTarget->resetAllocator();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
virtual void setupPaths(SkTArray<SkPath>*) = 0;
|
|
|
|
|
|
|
|
SkString fName;
|
|
|
|
std::unique_ptr<GrMockOpTarget> fTarget;
|
|
|
|
SkTArray<SkPath> fPaths;
|
|
|
|
SkStrokeRec fStrokeRec{SkStrokeRec::kHairline_InitStyle};
|
|
|
|
};
|
|
|
|
|
|
|
|
class StrokeIndirectBenchmark : public GrStrokeIndirectOp::Benchmark {
|
|
|
|
public:
|
|
|
|
StrokeIndirectBenchmark(const char* nameSuffix, SkPaint::Join join, std::vector<SkPoint> pts)
|
|
|
|
: Benchmark(nameSuffix, join), fPts(std::move(pts)) {}
|
|
|
|
|
|
|
|
private:
|
|
|
|
void setupPaths(SkTArray<SkPath>* paths) final {
|
|
|
|
SkPath& path = paths->push_back();
|
2020-12-09 23:46:22 +00:00
|
|
|
if (fJoin == SkPaint::kRound_Join) {
|
2020-12-28 16:02:47 +00:00
|
|
|
path.reset().moveTo(fPts.back());
|
2020-12-09 23:46:22 +00:00
|
|
|
for (size_t i = 0; i < kNumCubicsInChalkboard/fPts.size(); ++i) {
|
|
|
|
for (size_t j = 0; j < fPts.size(); ++j) {
|
2020-12-28 16:02:47 +00:00
|
|
|
path.lineTo(fPts[j]);
|
2020-12-09 23:46:22 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
2020-12-28 16:02:47 +00:00
|
|
|
path.reset().moveTo(fPts[0]);
|
2020-12-09 23:46:22 +00:00
|
|
|
for (int i = 0; i < kNumCubicsInChalkboard/2; ++i) {
|
|
|
|
if (fPts.size() == 4) {
|
2020-12-28 16:02:47 +00:00
|
|
|
path.cubicTo(fPts[1], fPts[2], fPts[3]);
|
|
|
|
path.cubicTo(fPts[2], fPts[1], fPts[0]);
|
2020-12-09 23:46:22 +00:00
|
|
|
} else {
|
|
|
|
SkASSERT(fPts.size() == 3);
|
2020-12-28 16:02:47 +00:00
|
|
|
path.quadTo(fPts[1], fPts[2]);
|
|
|
|
path.quadTo(fPts[2], fPts[1]);
|
2020-12-09 23:46:22 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-12-28 16:02:47 +00:00
|
|
|
const std::vector<SkPoint> fPts;
|
2020-12-09 23:46:22 +00:00
|
|
|
};
|
|
|
|
|
2020-12-28 16:02:47 +00:00
|
|
|
DEF_BENCH( return new StrokeIndirectBenchmark(
|
2020-12-09 23:46:22 +00:00
|
|
|
"_inflect1", SkPaint::kBevel_Join, {{0,0}, {100,0}, {0,100}, {100,100}}); )
|
|
|
|
|
2020-12-28 16:02:47 +00:00
|
|
|
DEF_BENCH( return new StrokeIndirectBenchmark(
|
2020-12-09 23:46:22 +00:00
|
|
|
"_inflect2", SkPaint::kBevel_Join, {{37,162}, {412,160}, {249,65}, {112,360}}); )
|
|
|
|
|
2020-12-28 16:02:47 +00:00
|
|
|
DEF_BENCH( return new StrokeIndirectBenchmark(
|
2020-12-09 23:46:22 +00:00
|
|
|
"_loop", SkPaint::kBevel_Join, {{0,0}, {100,0}, {0,100}, {0,0}}); )
|
|
|
|
|
2020-12-28 16:02:47 +00:00
|
|
|
DEF_BENCH( return new StrokeIndirectBenchmark(
|
2020-12-09 23:46:22 +00:00
|
|
|
"_nochop", SkPaint::kBevel_Join, {{0,0}, {50,0}, {100,50}, {100,100}}); )
|
|
|
|
|
2020-12-28 16:02:47 +00:00
|
|
|
DEF_BENCH( return new StrokeIndirectBenchmark(
|
2020-12-09 23:46:22 +00:00
|
|
|
"_quad", SkPaint::kBevel_Join, {{0,0}, {50,100}, {100,0}}); )
|
|
|
|
|
2020-12-28 16:02:47 +00:00
|
|
|
DEF_BENCH( return new StrokeIndirectBenchmark(
|
2020-12-09 23:46:22 +00:00
|
|
|
"_roundjoin", SkPaint::kRound_Join, {{0,0}, {50,100}, {100,0}}); )
|
2020-12-28 16:02:47 +00:00
|
|
|
|
|
|
|
class SingleVerbStrokeIndirectBenchmark : public GrStrokeIndirectOp::Benchmark {
|
|
|
|
public:
|
|
|
|
SingleVerbStrokeIndirectBenchmark(const char* nameSuffix, SkPathVerb verb)
|
|
|
|
: Benchmark(nameSuffix, SkPaint::kBevel_Join), fVerb(verb) {}
|
|
|
|
|
|
|
|
private:
|
|
|
|
void setupPaths(SkTArray<SkPath>* paths) override {
|
|
|
|
SkRandom rand;
|
|
|
|
for (int i = 0; i < kNumCubicsInChalkboard; ++i) {
|
|
|
|
switch (fVerb) {
|
|
|
|
case SkPathVerb::kQuad:
|
|
|
|
paths->push_back().quadTo(rand.nextF(), rand.nextF(), rand.nextF(),
|
|
|
|
rand.nextF());
|
|
|
|
break;
|
|
|
|
case SkPathVerb::kCubic:
|
|
|
|
switch (i % 3) {
|
|
|
|
case 0:
|
|
|
|
paths->push_back().cubicTo(100, 0, 0, 100, 100, 100); // 1 inflection.
|
|
|
|
break;
|
|
|
|
case 1:
|
|
|
|
paths->push_back().cubicTo(100, 0, 0, 100, 0, 0); // loop.
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
paths->push_back().cubicTo(50, 0, 100, 50, 100, 100); // no chop.
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
SkUNREACHABLE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
const SkPathVerb fVerb;
|
|
|
|
};
|
|
|
|
|
|
|
|
DEF_BENCH( return new SingleVerbStrokeIndirectBenchmark("_singlequads", SkPathVerb::kQuad); )
|
|
|
|
DEF_BENCH( return new SingleVerbStrokeIndirectBenchmark("_singlecubics", SkPathVerb::kCubic); )
|