Skia
2DGraphicsLibrary
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SkBlurDrawLooper::BlurDrawLooperContext Class Reference
Inheritance diagram for SkBlurDrawLooper::BlurDrawLooperContext:
SkDrawLooper::Context

Public Member Functions

 BlurDrawLooperContext (const SkBlurDrawLooper *looper)
 
bool next (SkCanvas *canvas, SkPaint *paint) override
 Called in a loop on objects returned by SkDrawLooper::createContext(). More...
 

Private Attributes

const SkBlurDrawLooperfLooper
 
State fState
 

Member Function Documentation

bool SkBlurDrawLooper::BlurDrawLooperContext::next ( SkCanvas canvas,
SkPaint paint 
)
overridevirtual

Called in a loop on objects returned by SkDrawLooper::createContext().

Each time true is returned, the object is drawn (possibly with a modified canvas and/or paint). When false is finally returned, drawing for the object stops.

On each call, the paint will be in its original state, but the canvas will be as it was following the previous call to next() or createContext().

The implementation must ensure that, when next() finally returns false, the canvas has been restored to the state it was initially, before createContext() was first called.

Implements SkDrawLooper::Context.


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