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

#include <SkRecordPattern.h>

Public Member Functions

 IsSingleDraw ()
 
SkPaintget ()
 
template<typename T >
std::enable_if_t<(T::kTags &kDrawWithPaint_Tag)==kDrawWithPaint_Tag &&!(T::kTags &kMultiDraw_Tag), bool > operator() (T *draw)
 
template<typename T >
std::enable_if_t<(T::kTags &kDrawWithPaint_Tag)==kDraw_Tag &&!(T::kTags &kMultiDraw_Tag), bool > operator() (T *draw)
 
template<typename T >
std::enable_if_t<!(T::kTags &kDraw_Tag)||(T::kTags &kMultiDraw_Tag), bool > operator() (T *draw)
 

Detailed Description

Definition at line 78 of file SkRecordPattern.h.

Constructor & Destructor Documentation

◆ IsSingleDraw()

SkRecords::IsSingleDraw::IsSingleDraw ( )
inline

Definition at line 80 of file SkRecordPattern.h.

80: fPaint(nullptr) {}

Member Function Documentation

◆ get()

SkPaint * SkRecords::IsSingleDraw::get ( )
inline

Definition at line 82 of file SkRecordPattern.h.

82{ return fPaint; }

◆ operator()() [1/3]

template<typename T >
std::enable_if_t<(T::kTags &kDrawWithPaint_Tag)==kDrawWithPaint_Tag && !(T::kTags &kMultiDraw_Tag), bool > SkRecords::IsSingleDraw::operator() ( T draw)
inline

Definition at line 88 of file SkRecordPattern.h.

88 {
89 fPaint = AsPtr(draw->paint);
90 return true;
91 }
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
Definition: aaclip.cpp:27

◆ operator()() [2/3]

template<typename T >
std::enable_if_t<(T::kTags &kDrawWithPaint_Tag)==kDraw_Tag && !(T::kTags &kMultiDraw_Tag), bool > SkRecords::IsSingleDraw::operator() ( T draw)
inline

Definition at line 97 of file SkRecordPattern.h.

97 {
98 fPaint = nullptr;
99 return true;
100 }

◆ operator()() [3/3]

template<typename T >
std::enable_if_t<!(T::kTags &kDraw_Tag)||(T::kTags &kMultiDraw_Tag), bool > SkRecords::IsSingleDraw::operator() ( T draw)
inline

Definition at line 104 of file SkRecordPattern.h.

104 {
105 fPaint = nullptr;
106 return false;
107 }

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