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

Public Member Functions

 GeoRectBench_Intersects ()
 
- Public Member Functions inherited from GeoRectBench
 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 onDraw (int loops, SkCanvas *canvas) override
 
- Protected Member Functions inherited from GeoRectBench
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 ()
 

Additional Inherited Members

- Public Types inherited from Benchmark
enum class  Backend {
  kNonRendering , kRaster , kGanesh , kGraphite ,
  kPDF , kHWUI
}
 
- Protected Attributes inherited from GeoRectBench
SkRect fRects [2048]
 
- Protected Attributes inherited from GeometryBench
volatile int fVolatileInt
 

Detailed Description

Definition at line 101 of file GeometryBench.cpp.

Constructor & Destructor Documentation

◆ GeoRectBench_Intersects()

GeoRectBench_Intersects::GeoRectBench_Intersects ( )
inline

Definition at line 103 of file GeometryBench.cpp.

103: GeoRectBench("rect_Intersects") {}
GeoRectBench(const char suffix[])

Member Function Documentation

◆ onDraw()

void GeoRectBench_Intersects::onDraw ( int  loops,
SkCanvas canvas 
)
inlineoverrideprotectedvirtual

Implements Benchmark.

Definition at line 106 of file GeometryBench.cpp.

106 {
107 for (int outer = 0; outer < loops; ++outer) {
108 int count = 0;
109 for (size_t i = 0; i < std::size(fRects); ++i) {
110 count += SkRect::Intersects(fRects[0], fRects[i]);
111 }
112 this->virtualCallToFoilOptimizers(count);
113 }
114 }
int count
Definition: FontMgrTest.cpp:50
SkRect fRects[2048]
virtual void virtualCallToFoilOptimizers(int n)
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

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