Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
Bounder Struct Reference

Public Member Functions

 Bounder (const SkRect &r, const SkPaint &paint)
 
bool hasBounds () const
 
const SkRectbounds () const
 
 operator const SkRect * () const
 

Public Attributes

SkRect fBounds
 
bool fHasBounds
 

Detailed Description

Definition at line 45 of file SkBitmapDevice.cpp.

Constructor & Destructor Documentation

◆ Bounder()

Bounder::Bounder ( const SkRect r,
const SkPaint paint 
)
inline

Definition at line 49 of file SkBitmapDevice.cpp.

49 {
50 if ((fHasBounds = paint.canComputeFastBounds())) {
51 fBounds = paint.computeFastBounds(r, &fBounds);
52 }
53 }
const Paint & paint
Definition: color_source.cc:38
SkRect fBounds
bool fHasBounds

Member Function Documentation

◆ bounds()

const SkRect * Bounder::bounds ( ) const
inline

Definition at line 56 of file SkBitmapDevice.cpp.

56{ return fHasBounds ? &fBounds : nullptr; }

◆ hasBounds()

bool Bounder::hasBounds ( ) const
inline

Definition at line 55 of file SkBitmapDevice.cpp.

55{ return fHasBounds; }

◆ operator const SkRect *()

Bounder::operator const SkRect * ( ) const
inline

Definition at line 57 of file SkBitmapDevice.cpp.

57{ return this->bounds(); }
const SkRect * bounds() const

Member Data Documentation

◆ fBounds

SkRect Bounder::fBounds

Definition at line 46 of file SkBitmapDevice.cpp.

◆ fHasBounds

bool Bounder::fHasBounds

Definition at line 47 of file SkBitmapDevice.cpp.


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