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

Public Member Functions

 GeoRectBench_intersect ()
 
- 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 67 of file GeometryBench.cpp.

Constructor & Destructor Documentation

◆ GeoRectBench_intersect()

GeoRectBench_intersect::GeoRectBench_intersect ( )
inline

Definition at line 69 of file GeometryBench.cpp.

69: GeoRectBench("rect_intersect") {}
GeoRectBench(const char suffix[])

Member Function Documentation

◆ onDraw()

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

Implements Benchmark.

Definition at line 72 of file GeometryBench.cpp.

72 {
73 for (int outer = 0; outer < loops; ++outer) {
74 int count = 0;
75 for (size_t i = 0; i < std::size(fRects); ++i) {
76 SkRect r = fRects[0];
77 count += r.intersect(fRects[i]);
78 }
79 this->virtualCallToFoilOptimizers(count);
80 }
81 }
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
bool intersect(const SkRect &r)
Definition: SkRect.cpp:114

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