Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Functions
BoundsManagerBench.cpp File Reference
#include "bench/Benchmark.h"
#include "include/core/SkPaint.h"
#include "include/core/SkPath.h"
#include "src/base/SkArenaAlloc.h"
#include "src/base/SkRandom.h"
#include "src/gpu/graphite/geom/BoundsManager.h"
#include "tools/ToolUtils.h"
#include "tools/flags/CommandLineFlags.h"

Go to the source code of this file.

Classes

class  skgpu::graphite::BoundsManagerBench
 
class  skgpu::graphite::RandomBoundsManagerBench
 
class  skgpu::graphite::FileBoundsManagerBench
 

Namespaces

namespace  skgpu
 
namespace  skgpu::graphite
 

Macros

#define PRINT_DRAWSET_COUNT   0
 
#define DEF_BOUNDS_MANAGER_BENCH_SET(manager, name)
 

Functions

static DEFINE_string (boundsManagerFile, "", "svg or skp for the BoundsManager bench to sniff paths from.")
 

Macro Definition Documentation

◆ DEF_BOUNDS_MANAGER_BENCH_SET

#define DEF_BOUNDS_MANAGER_BENCH_SET (   manager,
  name 
)
Value:

Definition at line 181 of file BoundsManagerBench.cpp.

190 {1800, 1800}, 128), "grid128")
192DEF_BOUNDS_MANAGER_BENCH_SET(std::make_unique<skgpu::graphite::HybridBoundsManager>(SkISize{1800, 1800}, 16, 64), "hybrid16x16n128")
193DEF_BOUNDS_MANAGER_BENCH_SET(std::make_unique<skgpu::graphite::HybridBoundsManager>(SkISize{1800, 1800}, 16, 128), "hybrid16x16n256")
194// Uncomment and adjust device size to match reported bounds from --boundsManagerFile
195// DEF_BOUNDS_MANAGER_BENCH_SET(skgpu::graphite::GridBoundsManager::MakeRes({w, h}, 8), "gridRes8")
196
197#undef DEF_BOUNDS_MANAGER_BENCH_SET
#define DEF_BOUNDS_MANAGER_BENCH_SET(manager, name)
static std::unique_ptr< GridBoundsManager > Make(const SkISize &deviceSize, const SkISize &gridSize)
Definition ref_ptr.h:256

◆ PRINT_DRAWSET_COUNT

#define PRINT_DRAWSET_COUNT   0

Definition at line 25 of file BoundsManagerBench.cpp.

Function Documentation

◆ DEFINE_string()

static DEFINE_string ( boundsManagerFile  ,
""  ,
"svg or skp for the BoundsManager bench to sniff paths from."   
)
static