| Flutter Impeller |

Classes | Namespaces | Macros | Functions | Variables
geometry_benchmarks.cc File Reference
`#include "flutter/benchmarking/benchmarking.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.

## Classes
class | impeller::ImpellerBenchmarkAccessor

## Namespaces
| impeller

## Macros
#define | MAKE_STROKE_BENCHMARK_CAPTURE(path, cap, join, closed)
#define | MAKE_STROKE_BENCHMARK_CAPTURE_ALL_CAPS_JOINS(path, closed)

## Functions
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,)
| impeller::BENCHMARK_CAPTURE (BM_Convex, rse_convex, CreateRSuperellipse(), true)
| impeller::MAKE_STROKE_BENCHMARK_CAPTURE (RSuperellipse, Butt, Bevel,)
| impeller::MAKE_STROKE_BENCHMARK_CAPTURE (RSuperellipse, Butt, Miter,)
| impeller::MAKE_STROKE_BENCHMARK_CAPTURE (RSuperellipse, Butt, Round,)

## Variables
static TessellatorLibtess | impeller::tess

## Macro Definition Documentation

## ◆ MAKE_STROKE_BENCHMARK_CAPTURE

#define MAKE_STROKE_BENCHMARK_CAPTURE | ( |  | path,
|  |  | cap,
|  |  | join,
|  |  | closed
| ) |  |

Value:
BENCHMARK_CAPTURE(BM_StrokePolyline, stroke_##path##_##cap##_##join, \
Create##path(closed), Cap::k##cap, Join::k##join)
impeller::interop::Create
ScopedObject< Object > Create(CtorArgs &&... args)
Definition: object.h:161
impeller::BENCHMARK_CAPTURE
BENCHMARK_CAPTURE(BM_Convex, rse_convex, CreateRSuperellipse(), true)
impeller::BM_StrokePolyline
static void BM_StrokePolyline(benchmark::State &state, Args &&... args)
Definition: geometry_benchmarks.cc:68

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, Bevel, closed); \
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)
MAKE_STROKE_BENCHMARK_CAPTURE
#define MAKE_STROKE_BENCHMARK_CAPTURE(path, cap, join, closed)
Definition: geometry_benchmarks.cc:119

Definition at line 123 of file geometry_benchmarks.cc.