Skia
2DGraphicsLibrary
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SkPaintFlagsDrawFilter Class Reference
Inheritance diagram for SkPaintFlagsDrawFilter:
SkDrawFilter SkRefCnt SkRefCntBase

Public Member Functions

 SkPaintFlagsDrawFilter (uint32_t clearFlags, uint32_t setFlags)
 
bool filter (SkPaint *, Type) override
 Called with the paint that will be used to draw the specified type. More...
 
- Public Member Functions inherited from SkRefCntBase
 SkRefCntBase ()
 Default construct, initializing the reference count to 1.
 
virtual ~SkRefCntBase ()
 Destruct, asserting that the reference count is 1.
 
int32_t getRefCnt () const
 Return the reference count. More...
 
void validate () const
 
bool unique () const
 May return true if the caller is the only owner. More...
 
void ref () const
 Increment the reference count. More...
 
void unref () const
 Decrement the reference count. More...
 

Private Attributes

uint16_t fClearFlags
 
uint16_t fSetFlags
 

Additional Inherited Members

- Public Types inherited from SkDrawFilter
enum  Type {
  kPaint_Type, kPoint_Type, kLine_Type, kBitmap_Type,
  kRect_Type, kRRect_Type, kOval_Type, kPath_Type,
  kText_Type
}
 
enum  { kTypeCount = kText_Type + 1 }
 
- Protected Member Functions inherited from SkRefCntBase
void internal_dispose_restore_refcnt_to_1 () const
 Allow subclasses to call this if they've overridden internal_dispose so they can reset fRefCnt before the destructor is called or if they choose not to call the destructor (e.g. More...
 

Member Function Documentation

bool SkPaintFlagsDrawFilter::filter ( SkPaint ,
Type   
)
overridevirtual

Called with the paint that will be used to draw the specified type.

The implementation may modify the paint as they wish. If filter() returns false, the draw will be skipped.

Implements SkDrawFilter.


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