Flutter Engine
The Flutter Engine
Public Member Functions | Protected Member Functions | List of all members
SkRecords::Draw Class Reference

#include <SkRecordDraw.h>

Inheritance diagram for SkRecords::Draw:
SkNoncopyable

Public Member Functions

 Draw (SkCanvas *canvas, SkPicture const *const drawablePicts[], SkDrawable *const drawables[], int drawableCount, const SkM44 *initialCTM=nullptr)
 
template<typename T >
void operator() (const T &r)
 
template<>
void draw (const NoOp &)
 
template<>
void draw (const DrawBehind &r)
 

Protected Member Functions

SkPicture const *const * drawablePicts () const
 
int drawableCount () const
 

Detailed Description

Definition at line 33 of file SkRecordDraw.h.

Constructor & Destructor Documentation

◆ Draw()

SkRecords::Draw::Draw ( SkCanvas canvas,
SkPicture const *const  drawablePicts[],
SkDrawable *const  drawables[],
int  drawableCount,
const SkM44 initialCTM = nullptr 
)
inlineexplicit

Definition at line 35 of file SkRecordDraw.h.

38 : fInitialCTM(initialCTM ? *initialCTM : canvas->getLocalToDevice())
39 , fCanvas(canvas)
40 , fDrawablePicts(drawablePicts)
41 , fDrawables(drawables)
42 , fDrawableCount(drawableCount)
43 {}
SkM44 getLocalToDevice() const
Definition: SkCanvas.cpp:1633
SkPicture const *const * drawablePicts() const
Definition: SkRecordDraw.h:53
int drawableCount() const
Definition: SkRecordDraw.h:54

Member Function Documentation

◆ draw() [1/2]

template<>
void SkRecords::Draw::draw ( const DrawBehind &  r)

Definition at line 112 of file SkRecordDraw.cpp.

112 {
113 SkCanvasPriv::DrawBehind(fCanvas, r.paint);
114}
static void DrawBehind(SkCanvas *canvas, const SkPaint &paint)
Definition: SkCanvasPriv.h:56

◆ draw() [2/2]

template<>
void SkRecords::Draw::draw ( const NoOp &  )

Definition at line 93 of file SkRecordDraw.cpp.

93{}

◆ drawableCount()

int SkRecords::Draw::drawableCount ( ) const
inlineprotected

Definition at line 54 of file SkRecordDraw.h.

54{ return fDrawableCount; }

◆ drawablePicts()

SkPicture const *const * SkRecords::Draw::drawablePicts ( ) const
inlineprotected

Definition at line 53 of file SkRecordDraw.h.

53{ return fDrawablePicts; }

◆ operator()()

template<typename T >
void SkRecords::Draw::operator() ( const T r)
inline

Definition at line 48 of file SkRecordDraw.h.

48 {
49 this->draw(r);
50 }

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