Skia
2DGraphicsLibrary
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SkPairPathEffect Class Reference

Common baseclass for Compose and Sum. More...

#include <SkPathEffect.h>

Inheritance diagram for SkPairPathEffect:
SkPathEffect SkFlattenable SkRefCnt SkRefCntBase SkComposePathEffect SkSumPathEffect

Protected Member Functions

 SkPairPathEffect (sk_sp< SkPathEffect > pe0, sk_sp< SkPathEffect > pe1)
 
void flatten (SkWriteBuffer &) const override
 Override this if your subclass needs to record data that it will need to recreate itself from its CreateProc (returned by getFactory()).
 
- 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...
 

Protected Attributes

sk_sp< SkPathEffectfPE0
 
sk_sp< SkPathEffectfPE1
 

Private Types

typedef SkPathEffect INHERITED
 

Additional Inherited Members

- Public Types inherited from SkPathEffect
enum  DashType { kNone_DashType, kDash_DashType }
 If the PathEffect can be represented as a dash pattern, asADash will return kDash_DashType and None otherwise. More...
 
- Public Types inherited from SkFlattenable
enum  Type {
  kSkColorFilter_Type, kSkDrawable_Type, kSkDrawLooper_Type, kSkImageFilter_Type,
  kSkMaskFilter_Type, kSkPathEffect_Type, kSkPixelRef_Type, kSkRasterizer_Type,
  kSkShader_Type, kSkUnused_Type, kSkXfermode_Type, kSkNormalSource_Type
}
 
typedef sk_sp< SkFlattenable >(* Factory )(SkReadBuffer &)
 
- Public Member Functions inherited from SkPathEffect
virtual bool filterPath (SkPath *dst, const SkPath &src, SkStrokeRec *, const SkRect *cullR) const =0
 Given a src path (input) and a stroke-rec (input and output), apply this effect to the src path, returning the new path in dst, and return true. More...
 
virtual void computeFastBounds (SkRect *dst, const SkRect &src) const
 Compute a conservative bounds for its effect, given the src bounds. More...
 
virtual bool asPoints (PointData *results, const SkPath &src, const SkStrokeRec &, const SkMatrix &, const SkRect *cullR) const
 Does applying this path effect to 'src' yield a set of points? If so, optionally return the points in 'results'.
 
virtual DashType asADash (DashInfo *info) const
 
- Public Member Functions inherited from SkFlattenable
virtual Factory getFactory () const =0
 Implement this to return a factory function pointer that can be called to recreate your class given a buffer (previously written to by your override of flatten().
 
virtual const char * getTypeName () const
 Returns the name of the object's class. 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...
 
- Static Public Member Functions inherited from SkFlattenable
static Factory NameToFactory (const char name[])
 
static const char * FactoryToName (Factory)
 
static bool NameToType (const char name[], Type *type)
 
static void Register (const char name[], Factory, Type)
 

Detailed Description

Common baseclass for Compose and Sum.

This subclass manages two pathEffects, including flattening them. It does nothing in filterPath, and is only useful for managing the lifetimes of its two arguments.


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