Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
flutter::SkOptionalPaint Class Reference

Public Member Functions

 SkOptionalPaint (const DlPaint *dl_paint)
 
SkPaint * operator() ()
 

Detailed Description

Definition at line 23 of file dl_sk_canvas.cc.

Constructor & Destructor Documentation

◆ SkOptionalPaint()

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

Definition at line 26 of file dl_sk_canvas.cc.

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

References flutter::DlPaint::isDefault(), and flutter::ToNonShaderSk().

Member Function Documentation

◆ operator()()

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

Definition at line 35 of file dl_sk_canvas.cc.

35{ return ptr_; }

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