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

Public Member Functions

 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 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 ()
 

Protected Attributes

SkMaskBuilder fSrcMask
 

Additional Inherited Members

- Public Types inherited from Benchmark
enum class  Backend {
  kNonRendering , kRaster , kGanesh , kGraphite ,
  kPDF , kHWUI
}
 

Detailed Description

Definition at line 104 of file BlurRectBench.cpp.

Constructor & Destructor Documentation

◆ BlurRectSeparableBench()

BlurRectSeparableBench::BlurRectSeparableBench ( SkScalar  rad)
inline

Definition at line 107 of file BlurRectBench.cpp.

107: INHERITED(rad) { }

◆ ~BlurRectSeparableBench()

BlurRectSeparableBench::~BlurRectSeparableBench ( )
inlineoverride

Definition at line 109 of file BlurRectBench.cpp.

109 {
111 }
static void FreeImage(void *image)
Definition: SkMask.cpp:57
uint8_t *& image()
Definition: SkMask.h:236

Member Function Documentation

◆ preBenchSetup()

void BlurRectSeparableBench::preBenchSetup ( const SkRect r)
inlineoverrideprotectedvirtual

Reimplemented from BlurRectBench.

Definition at line 114 of file BlurRectBench.cpp.

114 {
116
121
122 memset(fSrcMask.image(), 0xff, fSrcMask.computeTotalImageSize());
123 }
constexpr int32_t width() const
Definition: SkRect.h:158
Format & format()
Definition: SkMask.h:239
uint32_t & rowBytes()
Definition: SkMask.h:238
static uint8_t * AllocImage(size_t bytes, AllocType=kUninit_Alloc)
Definition: SkMask.cpp:45
SkIRect & bounds()
Definition: SkMask.h:237
@ kA8_Format
8bits per pixel mask (e.g. antialiasing)
Definition: SkMask.h:28
const SkIRect fBounds
Definition: SkMask.h:42
size_t computeTotalImageSize() const
Definition: SkMask.cpp:34
void roundOut(SkIRect *dst) const
Definition: SkRect.h:1241

Member Data Documentation

◆ fSrcMask

SkMaskBuilder BlurRectSeparableBench::fSrcMask
protected

Definition at line 125 of file BlurRectBench.cpp.


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