Flutter Engine
The Flutter Engine
|
#include <SkSLProgramUsage.h>
Classes | |
struct | VariableCounts |
Public Member Functions | |
VariableCounts | get (const Variable &) const |
bool | isDead (const Variable &) const |
int | get (const FunctionDeclaration &) const |
void | add (const Expression *expr) |
void | add (const Statement *stmt) |
void | add (const ProgramElement &element) |
void | remove (const Expression *expr) |
void | remove (const Statement *stmt) |
void | remove (const ProgramElement &element) |
bool | operator== (const ProgramUsage &that) const |
bool | operator!= (const ProgramUsage &that) const |
Public Attributes | |
skia_private::THashMap< const Symbol *, int > | fStructCounts |
skia_private::THashMap< const Symbol *, int > | fCallCounts |
skia_private::THashMap< const Variable *, VariableCounts > | fVariableCounts |
Side-car class holding mutable information about a Program's IR
Definition at line 26 of file SkSLProgramUsage.h.
void SkSL::ProgramUsage::add | ( | const Expression * | expr | ) |
Definition at line 190 of file SkSLProgramUsage.cpp.
void SkSL::ProgramUsage::add | ( | const ProgramElement & | element | ) |
Definition at line 200 of file SkSLProgramUsage.cpp.
void SkSL::ProgramUsage::add | ( | const Statement * | stmt | ) |
Definition at line 195 of file SkSLProgramUsage.cpp.
int SkSL::ProgramUsage::get | ( | const FunctionDeclaration & | f | ) | const |
Definition at line 185 of file SkSLProgramUsage.cpp.
ProgramUsage::VariableCounts SkSL::ProgramUsage::get | ( | const Variable & | v | ) | const |
Definition at line 164 of file SkSLProgramUsage.cpp.
bool SkSL::ProgramUsage::isDead | ( | const Variable & | v | ) | const |
Definition at line 170 of file SkSLProgramUsage.cpp.
|
inline |
Definition at line 46 of file SkSLProgramUsage.h.
bool SkSL::ProgramUsage::operator== | ( | const ProgramUsage & | that | ) | const |
Definition at line 285 of file SkSLProgramUsage.cpp.
void SkSL::ProgramUsage::remove | ( | const Expression * | expr | ) |
Definition at line 205 of file SkSLProgramUsage.cpp.
void SkSL::ProgramUsage::remove | ( | const ProgramElement & | element | ) |
Definition at line 215 of file SkSLProgramUsage.cpp.
void SkSL::ProgramUsage::remove | ( | const Statement * | stmt | ) |
Definition at line 210 of file SkSLProgramUsage.cpp.
skia_private::THashMap<const Symbol*, int> SkSL::ProgramUsage::fCallCounts |
Definition at line 51 of file SkSLProgramUsage.h.
skia_private::THashMap<const Symbol*, int> SkSL::ProgramUsage::fStructCounts |
Definition at line 49 of file SkSLProgramUsage.h.
skia_private::THashMap<const Variable*, VariableCounts> SkSL::ProgramUsage::fVariableCounts |
Definition at line 52 of file SkSLProgramUsage.h.