Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
SaveOnlyDrawsRestoreNooper Struct Reference

Public Types

typedef Pattern< Is< Save >, Greedy< Or< Is< NoOp >, IsDraw > >, Is< Restore > > Match
 

Public Member Functions

bool onMatch (SkRecord *record, Match *, int begin, int end)
 

Detailed Description

Definition at line 49 of file SkRecordOpts.cpp.

Member Typedef Documentation

◆ Match

typedef Pattern<Is<Save>, Greedy<Or<Is<NoOp>, IsDraw> >, Is<Restore> > SaveOnlyDrawsRestoreNooper::Match

Definition at line 53 of file SkRecordOpts.cpp.

Member Function Documentation

◆ onMatch()

bool SaveOnlyDrawsRestoreNooper::onMatch ( SkRecord record,
Match ,
int  begin,
int  end 
)
inline

Definition at line 55 of file SkRecordOpts.cpp.

55 {
56 record->replace<NoOp>(begin); // Save
57 record->replace<NoOp>(end-1); // Restore
58 return true;
59 }
T * replace(int i)
Definition SkRecord.h:83
static const char * begin(const StringSlice &s)
Definition editor.cpp:252
glong glong end

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