Skia
2DGraphicsLibrary
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SkLayerDrawLooper::Builder Class Reference

Public Member Functions

SkPaintaddLayer (const LayerInfo &)
 Call for each layer you want to add (from top to bottom). More...
 
void addLayer (SkScalar dx, SkScalar dy)
 This layer will draw with the original paint, at the specified offset.
 
void addLayer ()
 This layer will with the original paint and no offset.
 
SkPaintaddLayerOnTop (const LayerInfo &)
 Similar to addLayer, but adds a layer to the top.
 
sk_sp< SkDrawLooperdetach ()
 Pass list of layers on to newly built looper and return it. More...
 

Private Attributes

RecfRecs
 
RecfTopRec
 
int fCount
 

Member Function Documentation

SkPaint* SkLayerDrawLooper::Builder::addLayer ( const LayerInfo )

Call for each layer you want to add (from top to bottom).

This returns a paint you can modify, but that ptr is only valid until the next call made to addLayer().

sk_sp<SkDrawLooper> SkLayerDrawLooper::Builder::detach ( )

Pass list of layers on to newly built looper and return it.

This will also reset the builder, so it can be used to build another looper.


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