Flutter Engine
The Flutter Engine
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
GeoRectBench Class Reference
Inheritance diagram for GeoRectBench:
GeometryBench Benchmark SkRefCnt SkRefCntBase GeoRectBench_Intersects GeoRectBench_intersect GeoRectBench_intersect_rect GeoRectBench_sort

Public Member Functions

 GeoRectBench (const char suffix[])
 
- Public Member Functions inherited from GeometryBench
 GeometryBench (const char suffix[])
 
const char * onGetName () override
 
bool isSuitableFor (Backend backend) override
 
- 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
 

Protected Member Functions

void onDelayedSetup () override
 
- Protected Member Functions inherited from GeometryBench
virtual void virtualCallToFoilOptimizers (int n)
 
- 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 ()
 

Protected Attributes

SkRect fRects [2048]
 
- Protected Attributes inherited from GeometryBench
volatile int fVolatileInt
 

Additional Inherited Members

- Public Types inherited from Benchmark
enum class  Backend {
  kNonRendering , kRaster , kGanesh , kGraphite ,
  kPDF , kHWUI
}
 

Detailed Description

Definition at line 46 of file GeometryBench.cpp.

Constructor & Destructor Documentation

◆ GeoRectBench()

GeoRectBench::GeoRectBench ( const char  suffix[])
inline

Definition at line 48 of file GeometryBench.cpp.

GeometryBench(const char suffix[])

Member Function Documentation

◆ onDelayedSetup()

void GeoRectBench::onDelayedSetup ( )
inlineoverrideprotectedvirtual

Reimplemented from Benchmark.

Definition at line 53 of file GeometryBench.cpp.

53 {
54 const SkScalar min = -100;
55 const SkScalar max = 100;
56 SkRandom rand;
57 for (size_t i = 0; i < std::size(fRects); ++i) {
62 fRects[i].setXYWH(x, y, w, h);
63 }
64 }
SkRect fRects[2048]
SkScalar nextRangeScalar(SkScalar min, SkScalar max)
Definition: SkRandom.h:106
float SkScalar
Definition: extension.cpp:12
static float max(float r, float g, float b)
Definition: hsl.cpp:49
static float min(float r, float g, float b)
Definition: hsl.cpp:48
double y
double x
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
SkScalar w
SkScalar h
void setXYWH(float x, float y, float width, float height)
Definition: SkRect.h:931

Member Data Documentation

◆ fRects

SkRect GeoRectBench::fRects[2048]
protected

Definition at line 51 of file GeometryBench.cpp.


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