#include "flutter/benchmarking/benchmarking.h"
#include "flutter/impeller/entity/solid_fill.vert.h"
#include "impeller/entity/geometry/stroke_path_geometry.h"
#include "impeller/geometry/path.h"
#include "impeller/geometry/path_builder.h"
#include "impeller/tessellator/tessellator_libtess.h"
Go to the source code of this file.
|
template<class... Args> |
static void | impeller::BM_Polyline (benchmark::State &state, Args &&... args) |
|
template<class... Args> |
static void | impeller::BM_StrokePolyline (benchmark::State &state, Args &&... args) |
|
template<class... Args> |
static void | impeller::BM_Convex (benchmark::State &state, Args &&... args) |
|
| impeller::BENCHMARK_CAPTURE (BM_Polyline, cubic_polyline, CreateCubic(true)) |
|
| impeller::BENCHMARK_CAPTURE (BM_Polyline, unclosed_cubic_polyline, CreateCubic(false)) |
|
| impeller::MAKE_STROKE_BENCHMARK_CAPTURE_ALL_CAPS_JOINS (Cubic, false) |
|
| impeller::BENCHMARK_CAPTURE (BM_Polyline, quad_polyline, CreateQuadratic(true)) |
|
| impeller::BENCHMARK_CAPTURE (BM_Polyline, unclosed_quad_polyline, CreateQuadratic(false)) |
|
| impeller::MAKE_STROKE_BENCHMARK_CAPTURE_ALL_CAPS_JOINS (Quadratic, false) |
|
| impeller::BENCHMARK_CAPTURE (BM_Convex, rrect_convex, CreateRRect(), true) |
|
| impeller::MAKE_STROKE_BENCHMARK_CAPTURE (RRect, Butt, Bevel,) |
|
| impeller::MAKE_STROKE_BENCHMARK_CAPTURE (RRect, Butt, Miter,) |
|
| impeller::MAKE_STROKE_BENCHMARK_CAPTURE (RRect, Butt, Round,) |
|
◆ MAKE_STROKE_BENCHMARK_CAPTURE
#define MAKE_STROKE_BENCHMARK_CAPTURE |
( |
|
path, |
|
|
|
cap, |
|
|
|
join, |
|
|
|
closed |
|
) |
| |
Value:
static sk_sp< Effect > Create()
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
BENCHMARK_CAPTURE(BM_Convex, rrect_convex, CreateRRect(), true)
static void BM_StrokePolyline(benchmark::State &state, Args &&... args)
static SkString join(const CommandLineFlags::StringArray &)
Definition at line 119 of file geometry_benchmarks.cc.
◆ MAKE_STROKE_BENCHMARK_CAPTURE_ALL_CAPS_JOINS
#define MAKE_STROKE_BENCHMARK_CAPTURE_ALL_CAPS_JOINS |
( |
|
path, |
|
|
|
closed |
|
) |
| |
Value:
MAKE_STROKE_BENCHMARK_CAPTURE(
path, Butt, Miter, closed); \
MAKE_STROKE_BENCHMARK_CAPTURE(
path, Butt, Round, closed); \
MAKE_STROKE_BENCHMARK_CAPTURE(
path, Square, Bevel, closed); \
MAKE_STROKE_BENCHMARK_CAPTURE(
path, Round, Bevel, closed)
#define MAKE_STROKE_BENCHMARK_CAPTURE(path, cap, join, closed)
Definition at line 123 of file geometry_benchmarks.cc.