| Flutter Impeller |

Classes | Namespaces | Macros | Functions | Variables
geometry_benchmarks.cc File Reference
`#include "flutter/benchmarking/benchmarking.h"`
`#include "flutter/display_list/geometry/dl_path.h"`
`#include "flutter/display_list/geometry/dl_path_builder.h"`
`#include "impeller/entity/geometry/shadow_path_geometry.h"`
`#include "impeller/entity/geometry/stroke_path_geometry.h"`
`#include "impeller/tessellator/tessellator_libtess.h"`

Go to the source code of this file.

## Classes
class | impeller::ImpellerBenchmarkAccessor

## Namespaces
| impeller

## Macros
#define | MAKE_SHADOW_BENCHMARK_CAPTURE(clockwise, shape, backend)
#define | MAKE_SHADOW_BENCHMARK_SHAPE_CAPTURE(shape, backend)
#define | MAKE_SHADOW_BENCHMARK_CAPTURE_ALL_SHAPES(backend)
#define | MAKE_STROKE_PATH_BENCHMARK_CAPTURE(path, cap, join, closed)
#define | MAKE_STROKE_BENCHMARK_CAPTURE_ALL_CAPS_JOINS(path, closed)

## Functions
template<class... Args>
static void | impeller::BM_StrokePath (benchmark::State &state, Args &&... args)
template<class... Args>
static void | impeller::BM_Convex (benchmark::State &state, Args &&... args)
template<class... Args>
static void | impeller::BM_ShadowPathVerticesImpeller (benchmark::State &state, Args &&... args)
| impeller::MAKE_SHADOW_BENCHMARK_CAPTURE_ALL_SHAPES (Impeller)
| impeller::MAKE_STROKE_BENCHMARK_CAPTURE_ALL_CAPS_JOINS (Cubic, false)
| impeller::MAKE_STROKE_BENCHMARK_CAPTURE_ALL_CAPS_JOINS (Quadratic, false)
| impeller::BENCHMARK_CAPTURE (BM_Convex, rrect_convex, CreateRRect(), true)
| impeller::MAKE_STROKE_PATH_BENCHMARK_CAPTURE (RRect, Butt, Bevel,)
| impeller::MAKE_STROKE_PATH_BENCHMARK_CAPTURE (RRect, Butt, Miter,)
| impeller::MAKE_STROKE_PATH_BENCHMARK_CAPTURE (RRect, Butt, Round,)
| impeller::BENCHMARK_CAPTURE (BM_Convex, rse_convex, CreateRSuperellipse(), true)
| impeller::MAKE_STROKE_PATH_BENCHMARK_CAPTURE (RSuperellipse, Butt, Bevel,)
| impeller::MAKE_STROKE_PATH_BENCHMARK_CAPTURE (RSuperellipse, Butt, Miter,)
| impeller::MAKE_STROKE_PATH_BENCHMARK_CAPTURE (RSuperellipse, Butt, Round,)

## Variables
static TessellatorLibtess | impeller::tess

## Macro Definition Documentation

## ◆ MAKE_SHADOW_BENCHMARK_CAPTURE

#define MAKE_SHADOW_BENCHMARK_CAPTURE | ( |  | clockwise,
|  |  | shape,
|  |  | backend
| ) |  |

Value:
BENCHMARK_CAPTURE(BM_ShadowPathVertices##backend, \
shadow_##clockwise##_##shape##_##backend, \
Create##clockwise##shape(), 20.0f, Matrix{})
impeller::interop::Create
ScopedObject< Object > Create(CtorArgs &&... args)
Definition: object.h:161
impeller::BENCHMARK_CAPTURE
BENCHMARK_CAPTURE(BM_Convex, rse_convex, CreateRSuperellipse(), true)

Definition at line 122 of file geometry_benchmarks.cc.

## ◆ MAKE_SHADOW_BENCHMARK_CAPTURE_ALL_SHAPES

#define MAKE_SHADOW_BENCHMARK_CAPTURE_ALL_SHAPES | ( |  | backend | ) |

Value:
MAKE_SHADOW_BENCHMARK_SHAPE_CAPTURE(Triangle, backend); \
MAKE_SHADOW_BENCHMARK_SHAPE_CAPTURE(Rect, backend); \
MAKE_SHADOW_BENCHMARK_SHAPE_CAPTURE(MultiRadiiRoundRect, backend); \
MAKE_SHADOW_BENCHMARK_SHAPE_CAPTURE(Polygon, backend)
MAKE_SHADOW_BENCHMARK_SHAPE_CAPTURE
#define MAKE_SHADOW_BENCHMARK_SHAPE_CAPTURE(shape, backend)
Definition: geometry_benchmarks.cc:127
impeller::Rect
TRect< Scalar > Rect
Definition: rect.h:788

Definition at line 131 of file geometry_benchmarks.cc.

## ◆ MAKE_SHADOW_BENCHMARK_SHAPE_CAPTURE

#define MAKE_SHADOW_BENCHMARK_SHAPE_CAPTURE | ( |  | shape,
|  |  | backend
| ) |  |

Value:
MAKE_SHADOW_BENCHMARK_CAPTURE(Clockwise, shape, backend); \
MAKE_SHADOW_BENCHMARK_CAPTURE(CounterClockwise, shape, backend)
MAKE_SHADOW_BENCHMARK_CAPTURE
#define MAKE_SHADOW_BENCHMARK_CAPTURE(clockwise, shape, backend)
Definition: geometry_benchmarks.cc:122

Definition at line 127 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_PATH_BENCHMARK_CAPTURE(path, Butt, Bevel, closed); \
MAKE_STROKE_PATH_BENCHMARK_CAPTURE(path, Butt, Miter, closed); \
MAKE_STROKE_PATH_BENCHMARK_CAPTURE(path, Butt, Round, closed); \
MAKE_STROKE_PATH_BENCHMARK_CAPTURE(path, Square, Bevel, closed); \
MAKE_STROKE_PATH_BENCHMARK_CAPTURE(path, Round, Bevel, closed)
MAKE_STROKE_PATH_BENCHMARK_CAPTURE
#define MAKE_STROKE_PATH_BENCHMARK_CAPTURE(path, cap, join, closed)
Definition: geometry_benchmarks.cc:139

Definition at line 143 of file geometry_benchmarks.cc.

## ◆ MAKE_STROKE_PATH_BENCHMARK_CAPTURE

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

Value:
BENCHMARK_CAPTURE(BM_StrokePath, stroke_##path##_##cap##_##join, \
Create##path(closed), Cap::k##cap, Join::k##join)
impeller::BM_StrokePath
static void BM_StrokePath(benchmark::State &state, Args &&... args)
Definition: geometry_benchmarks.cc:58

Definition at line 139 of file geometry_benchmarks.cc.