Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ConicBench_EvalPos Class Reference
Inheritance diagram for ConicBench_EvalPos:
ConicBench_Chop Benchmark SkRefCnt SkRefCntBase

Public Member Functions

 ConicBench_EvalPos (bool useV2)
 
void onDraw (int loops, SkCanvas *) override
 
- Public Member Functions inherited from ConicBench_Chop
 ConicBench_Chop ()
 
bool isSuitableFor (Backend backend) override
 
- Public Member Functions inherited from Benchmark
 Benchmark ()
 
const char * getName ()
 
const char * getUniqueName ()
 
SkISize getSize ()
 
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
 

Additional Inherited Members

- Public Types inherited from Benchmark
enum class  Backend {
  kNonRendering , kRaster , kGanesh , kGraphite ,
  kPDF , kHWUI
}
 
- Protected Member Functions inherited from Benchmark
void setUnits (int units)
 
virtual void setupPaint (SkPaint *paint)
 
virtual const char * onGetUniqueName ()
 
virtual void onDelayedSetup ()
 
virtual void onPerCanvasPreDraw (SkCanvas *)
 
virtual void onPerCanvasPostDraw (SkCanvas *)
 
virtual void onPreDraw (SkCanvas *)
 
virtual void onPostDraw (SkCanvas *)
 
virtual SkISize onGetSize ()
 
- Protected Attributes inherited from ConicBench_Chop
SkConic fRQ
 
SkConic fDst [2]
 
SkString fName
 

Detailed Description

Definition at line 927 of file PathBench.cpp.

Constructor & Destructor Documentation

◆ ConicBench_EvalPos()

ConicBench_EvalPos::ConicBench_EvalPos ( bool  useV2)
inline

Definition at line 930 of file PathBench.cpp.

930 : fUseV2(useV2) {
931 fName.printf("conic-eval-pos%d", useV2);
932 }
void printf(const char format[],...) SK_PRINTF_LIKE(2
Definition SkString.cpp:534

Member Function Documentation

◆ onDraw()

void ConicBench_EvalPos::onDraw ( int  loops,
SkCanvas  
)
inlineoverridevirtual

Reimplemented from ConicBench_Chop.

Definition at line 933 of file PathBench.cpp.

933 {
934 if (fUseV2) {
935 for (int i = 0; i < loops; ++i) {
936 for (int j = 0; j < 1000; ++j) {
937 fDst[0].fPts[0] = fRQ.evalAt(0.4f);
938 }
939 }
940 } else {
941 for (int i = 0; i < loops; ++i) {
942 for (int j = 0; j < 1000; ++j) {
943 fRQ.evalAt(0.4f, &fDst[0].fPts[0], nullptr);
944 }
945 }
946 }
947 }
SkPoint fPts[2]
SkConic fDst[2]
void evalAt(SkScalar t, SkPoint *pos, SkVector *tangent=nullptr) const
SkPoint fPts[3]
Definition SkGeometry.h:336

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