Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
SkAutoBlitterChoose Class Reference

#include <SkAutoBlitterChoose.h>

Inheritance diagram for SkAutoBlitterChoose:
SkNoncopyable

Public Member Functions

 SkAutoBlitterChoose ()
 
 SkAutoBlitterChoose (const SkDrawBase &draw, const SkMatrix *ctm, const SkPaint &paint, bool drawCoverage=false)
 
SkBlitteroperator-> ()
 
SkBlitterget () const
 
SkBlitterchoose (const SkDrawBase &draw, const SkMatrix *ctm, const SkPaint &paint, bool drawCoverage=false)
 

Detailed Description

Definition at line 22 of file SkAutoBlitterChoose.h.

Constructor & Destructor Documentation

◆ SkAutoBlitterChoose() [1/2]

SkAutoBlitterChoose::SkAutoBlitterChoose ( )
inline

Definition at line 24 of file SkAutoBlitterChoose.h.

24{}

◆ SkAutoBlitterChoose() [2/2]

SkAutoBlitterChoose::SkAutoBlitterChoose ( const SkDrawBase draw,
const SkMatrix ctm,
const SkPaint paint,
bool  drawCoverage = false 
)
inline

Definition at line 25 of file SkAutoBlitterChoose.h.

28 {
29 this->choose(draw, ctm, paint, drawCoverage);
30 }
SkBlitter * choose(const SkDrawBase &draw, const SkMatrix *ctm, const SkPaint &paint, bool drawCoverage=false)
const Paint & paint
Definition: color_source.cc:38

Member Function Documentation

◆ choose()

SkBlitter * SkAutoBlitterChoose::choose ( const SkDrawBase draw,
const SkMatrix ctm,
const SkPaint paint,
bool  drawCoverage = false 
)
inline

Definition at line 35 of file SkAutoBlitterChoose.h.

36 {
37 SkASSERT(!fBlitter);
38 fBlitter = draw.fBlitterChooser(draw.fDst,
39 ctm ? *ctm : *draw.fCTM,
40 paint,
41 &fAlloc,
42 drawCoverage,
43 draw.fRC->clipShader(),
45 return fBlitter;
46 }
#define SkASSERT(cond)
Definition: SkAssert.h:116
static SkSurfaceProps SkSurfacePropsCopyOrDefault(const SkSurfaceProps *props)
Definition: SkSurfacePriv.h:15
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
Definition: aaclip.cpp:27

◆ get()

SkBlitter * SkAutoBlitterChoose::get ( ) const
inline

Definition at line 33 of file SkAutoBlitterChoose.h.

33{ return fBlitter; }

◆ operator->()

SkBlitter * SkAutoBlitterChoose::operator-> ( )
inline

Definition at line 32 of file SkAutoBlitterChoose.h.

32{ return fBlitter; }

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