Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
flutter::SkOptionalPaint Class Reference

Public Member Functions

 SkOptionalPaint (const DlPaint *dl_paint)
 
SkPaintoperator() ()
 

Detailed Description

Definition at line 20 of file dl_sk_canvas.cc.

Constructor & Destructor Documentation

◆ SkOptionalPaint()

flutter::SkOptionalPaint::SkOptionalPaint ( const DlPaint dl_paint)
inlineexplicit

Definition at line 23 of file dl_sk_canvas.cc.

23 {
24 if (dl_paint && !dl_paint->isDefault()) {
25 sk_paint_ = ToNonShaderSk(*dl_paint);
26 ptr_ = &sk_paint_;
27 } else {
28 ptr_ = nullptr;
29 }
30 }
SkPaint ToNonShaderSk(const DlPaint &paint)

Member Function Documentation

◆ operator()()

SkPaint * flutter::SkOptionalPaint::operator() ( )
inline

Definition at line 32 of file dl_sk_canvas.cc.

32{ return ptr_; }

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