Flutter Engine
The Flutter Engine
Protected Member Functions | List of all members
MatrixCollapseBench Class Reference
Inheritance diagram for MatrixCollapseBench:
BaseImageFilterCollapseBench Benchmark SkRefCnt SkRefCntBase

Protected Member Functions

const char * onGetName () override
 
void onDelayedSetup () override
 
- Protected Member Functions inherited from BaseImageFilterCollapseBench
void doPreDraw (sk_sp< SkColorFilter > colorFilters[], int nFilters)
 
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 ()
 

Additional Inherited Members

- Public Types inherited from Benchmark
enum class  Backend {
  kNonRendering , kRaster , kGanesh , kGraphite ,
  kPDF , kHWUI
}
 
- Public Member Functions inherited from BaseImageFilterCollapseBench
 BaseImageFilterCollapseBench ()
 
- 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
 

Detailed Description

Definition at line 117 of file ImageFilterCollapse.cpp.

Member Function Documentation

◆ onDelayedSetup()

void MatrixCollapseBench::onDelayedSetup ( )
inlineoverrideprotectedvirtual

Reimplemented from Benchmark.

Definition at line 123 of file ImageFilterCollapse.cpp.

123 {
124 sk_sp<SkColorFilter> colorFilters[] = {
125 make_brightness(0.1f),
127 make_brightness(-0.1f),
128 };
129
130 this->doPreDraw(colorFilters, std::size(colorFilters));
131 }
static sk_sp< SkColorFilter > make_brightness(float amount)
static sk_sp< SkColorFilter > make_grayscale()
void doPreDraw(sk_sp< SkColorFilter > colorFilters[], int nFilters)
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
Definition: switches.h:259

◆ onGetName()

const char * MatrixCollapseBench::onGetName ( )
inlineoverrideprotectedvirtual

Implements Benchmark.

Definition at line 119 of file ImageFilterCollapse.cpp.

119 {
120 return "image_filter_collapse_matrix";
121 }

The documentation for this class was generated from the following file: