Flutter Engine
The Flutter Engine
|
Public Types | |
enum | RectanizerType { kPow2_RectanizerType , kSkyline_RectanizerType } |
enum | RectType { kRand_RectType , kRandPow2_RectType , kSmallPow2_RectType } |
Public Types inherited from Benchmark | |
enum class | Backend { kNonRendering , kRaster , kGanesh , kGraphite , kPDF , kHWUI } |
Public Member Functions | |
RectanizerBench (RectanizerType rectanizerType, RectType rectType) | |
Public Member Functions inherited from Benchmark | |
Benchmark () | |
const char * | getName () |
const char * | getUniqueName () |
SkISize | getSize () |
virtual bool | isSuitableFor (Backend backend) |
virtual void | modifyGrContextOptions (GrContextOptions *) |
virtual bool | shouldLoop () const |
void | delayedSetup () |
void | perCanvasPreDraw (SkCanvas *) |
void | perCanvasPostDraw (SkCanvas *) |
void | preDraw (SkCanvas *) |
void | postDraw (SkCanvas *) |
void | draw (int loops, SkCanvas *) |
virtual void | getGpuStats (SkCanvas *, skia_private::TArray< SkString > *keys, skia_private::TArray< double > *values) |
virtual bool | getDMSAAStats (GrRecordingContext *) |
int | getUnits () const |
Public Member Functions inherited from SkRefCntBase | |
SkRefCntBase () | |
virtual | ~SkRefCntBase () |
bool | unique () const |
void | ref () const |
void | unref () const |
Static Public Attributes | |
static constexpr int | kWidth = 1024 |
static constexpr int | kHeight = 1024 |
Protected Member Functions | |
bool | isSuitableFor (Backend backend) override |
const char * | onGetName () override |
void | onDelayedSetup () override |
void | onDraw (int loops, SkCanvas *canvas) override |
Protected Member Functions inherited from Benchmark | |
void | setUnits (int units) |
virtual void | setupPaint (SkPaint *paint) |
virtual const char * | onGetName ()=0 |
virtual const char * | onGetUniqueName () |
virtual void | onDelayedSetup () |
virtual void | onPerCanvasPreDraw (SkCanvas *) |
virtual void | onPerCanvasPostDraw (SkCanvas *) |
virtual void | onPreDraw (SkCanvas *) |
virtual void | onPostDraw (SkCanvas *) |
virtual void | onDraw (int loops, SkCanvas *)=0 |
virtual SkISize | onGetSize () |
This bench exercises the GPU backend's Rectanizer classes. It exercises the following rectanizers: Pow2 Rectanizer Skyline Rectanizer in the following cases: random rects (e.g., pull-save-layers forward use case) random power of two rects small constant sized power of 2 rects (e.g., glyph cache use case)
Definition at line 30 of file RectanizerBench.cpp.
Enumerator | |
---|---|
kPow2_RectanizerType | |
kSkyline_RectanizerType |
Definition at line 35 of file RectanizerBench.cpp.
Enumerator | |
---|---|
kRand_RectType | |
kRandPow2_RectType | |
kSmallPow2_RectType |
Definition at line 40 of file RectanizerBench.cpp.
|
inline |
Definition at line 46 of file RectanizerBench.cpp.
|
inlineoverrideprotectedvirtual |
Reimplemented from Benchmark.
Definition at line 69 of file RectanizerBench.cpp.
|
inlineoverrideprotectedvirtual |
Reimplemented from Benchmark.
Definition at line 77 of file RectanizerBench.cpp.
Implements Benchmark.
Definition at line 88 of file RectanizerBench.cpp.
|
inlineoverrideprotectedvirtual |
|
inlinestaticconstexpr |
Definition at line 33 of file RectanizerBench.cpp.
|
inlinestaticconstexpr |
Definition at line 32 of file RectanizerBench.cpp.