Flutter Engine
The Flutter Engine
Public Member Functions | Protected Member Functions | List of all members
BlurRectBoxFilterBench Class Reference
Inheritance diagram for BlurRectBoxFilterBench:
BlurRectSeparableBench BlurRectBench Benchmark SkRefCnt SkRefCntBase

Public Member Functions

 BlurRectBoxFilterBench (SkScalar rad)
 
- Public Member Functions inherited from BlurRectSeparableBench
 BlurRectSeparableBench (SkScalar rad)
 
 ~BlurRectSeparableBench () override
 
- Public Member Functions inherited from BlurRectBench
 BlurRectBench (SkScalar rad)
 
- 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 makeBlurryRect (const SkRect &) override
 
- Protected Member Functions inherited from BlurRectSeparableBench
void preBenchSetup (const SkRect &r) override
 
- Protected Member Functions inherited from BlurRectBench
const char * onGetName () override
 
SkScalar radius () const
 
void setName (const SkString &name)
 
void onDraw (int loops, SkCanvas *) override
 
virtual void makeBlurryRect (const SkRect &)=0
 
virtual void preBenchSetup (const SkRect &)
 
- 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 BlurRectSeparableBench
SkMaskBuilder fSrcMask
 

Detailed Description

Definition at line 130 of file BlurRectBench.cpp.

Constructor & Destructor Documentation

◆ BlurRectBoxFilterBench()

BlurRectBoxFilterBench::BlurRectBoxFilterBench ( SkScalar  rad)
inline

Definition at line 132 of file BlurRectBench.cpp.

132 : INHERITED(rad) {
134
135 if (SkScalarFraction(rad) != 0) {
136 name.printf("blurrect_boxfilter_%.2f", rad);
137 } else {
138 name.printf("blurrect_boxfilter_%d", SkScalarRoundToInt(rad));
139 }
140
141 this->setName(name);
142 }
#define SkScalarRoundToInt(x)
Definition: SkScalar.h:37
static SkScalar SkScalarFraction(SkScalar x)
Definition: SkScalar.h:67
void setName(const SkString &name)
DEF_SWITCHES_START aot vmservice shared library name
Definition: switches.h:32

Member Function Documentation

◆ makeBlurryRect()

void BlurRectBoxFilterBench::makeBlurryRect ( const SkRect )
inlineoverrideprotectedvirtual

Implements BlurRectBench.

Definition at line 146 of file BlurRectBench.cpp.

146 {
147 SkMaskBuilder mask;
150 return;
151 }
153 }
@ kNormal_SkBlurStyle
fuzzy inside and outside
Definition: SkBlurTypes.h:12
SkScalar radius() const
static SkScalar SK_SPI ConvertRadiusToSigma(SkScalar radius)
Definition: SkBlurMask.cpp:39
static bool BoxBlur(SkMaskBuilder *dst, const SkMask &src, SkScalar sigma, SkBlurStyle style, SkIPoint *margin=nullptr)
Definition: SkBlurMask.cpp:116
static void FreeImage(void *image)
Definition: SkMask.cpp:57
uint8_t *& image()
Definition: SkMask.h:236

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