Skia
2DGraphicsLibrary
|
DEPRECATED - use SkPaintFilterCanvas instead. More...
#include <SkDrawFilter.h>
Public Types | |
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 } |
Public Member Functions | |
virtual bool | filter (SkPaint *, Type)=0 |
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 Types | |
typedef SkRefCnt | INHERITED |
Additional Inherited Members | |
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... | |
DEPRECATED - use SkPaintFilterCanvas instead.
Right before something is being draw, filter() is called with the paint. The filter may modify the paint as it wishes, which will then be used for the actual drawing. Note: this modification only lasts for the current draw, as a temporary copy of the paint is used.
|
pure virtual |
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.
Implemented in SkPaintFlagsDrawFilter.