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

Public Member Functions

 BlurRectGaussianBench (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 158 of file BlurRectBench.cpp.

Constructor & Destructor Documentation

◆ BlurRectGaussianBench()

BlurRectGaussianBench::BlurRectGaussianBench ( SkScalar  rad)
inline

Definition at line 160 of file BlurRectBench.cpp.

160 : INHERITED(rad) {
162
163 if (SkScalarFraction(rad) != 0) {
164 name.printf("blurrect_gaussian_%.2f", rad);
165 } else {
166 name.printf("blurrect_gaussian_%d", SkScalarRoundToInt(rad));
167 }
168
169 this->setName(name);
170 }
#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 BlurRectGaussianBench::makeBlurryRect ( const SkRect )
inlineoverrideprotectedvirtual

Implements BlurRectBench.

Definition at line 174 of file BlurRectBench.cpp.

174 {
175 SkMaskBuilder mask;
177 &mask, fSrcMask, kNormal_SkBlurStyle)) {
178 return;
179 }
181 }
@ 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 BlurGroundTruth(SkScalar sigma, SkMaskBuilder *dst, const SkMask &src, SkBlurStyle, SkIPoint *margin=nullptr)
Definition: SkBlurMask.cpp:517
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: