Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
Stretch Struct Reference

Public Member Functions

template<typename T >
void operator() (T *)
 
void operator() (SkRecords::DrawRect *draw)
 
void apply (SkRecord *record)
 

Detailed Description

Definition at line 42 of file RecordTest.cpp.

Member Function Documentation

◆ apply()

void Stretch::apply ( SkRecord record)
inline

Definition at line 49 of file RecordTest.cpp.

49 {
50 for (int i = 0; i < record->count(); i++) {
51 record->mutate(i, *this);
52 }
53 }
auto mutate(int i, F &&f) -> decltype(f((SkRecords::NoOp *) nullptr))
Definition: SkRecord.h:54
int count() const
Definition: SkRecord.h:38

◆ operator()() [1/2]

void Stretch::operator() ( SkRecords::DrawRect *  draw)
inline

Definition at line 44 of file RecordTest.cpp.

44 {
45 draw->rect.fRight *= 2;
46 draw->rect.fBottom *= 2;
47 }
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
Definition: aaclip.cpp:27

◆ operator()() [2/2]

template<typename T >
void Stretch::operator() ( T )
inline

Definition at line 43 of file RecordTest.cpp.

43{}

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