Flutter Impeller
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/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_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)
 
 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_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)
#define MAKE_STROKE_PATH_BENCHMARK_CAPTURE(path, cap, join, closed)

Definition at line 92 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)
ScopedObject< Object > Create(CtorArgs &&... args)
Definition: object.h:161
static void BM_StrokePath(benchmark::State &state, Args &&... args)
BENCHMARK_CAPTURE(BM_Convex, rse_convex, CreateRSuperellipse(), true)

Definition at line 88 of file geometry_benchmarks.cc.