Flutter Engine
The Flutter Engine
Classes | Namespaces | Macros | Functions | Variables
geometry_benchmarks.cc File Reference
#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.

Classes

class  impeller::ImpellerBenchmarkAccessor
 

Namespaces

namespace  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,)
 

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)
static sk_sp< Effect > Create()
Definition: RefCntTest.cpp:117
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
Definition: switches.h:57
BENCHMARK_CAPTURE(BM_Convex, rrect_convex, CreateRRect(), true)
static void BM_StrokePolyline(benchmark::State &state, Args &&... args)
static SkString join(const CommandLineFlags::StringArray &)
Definition: skpbench.cpp:741

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)
#define MAKE_STROKE_BENCHMARK_CAPTURE(path, cap, join, closed)

Definition at line 123 of file geometry_benchmarks.cc.