Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
SkSL::Context Class Reference

#include <SkSLContext.h>

Public Member Functions

 Context (const BuiltinTypes &types, ErrorReporter &errors)
 
 ~Context ()
 
void setErrorReporter (ErrorReporter *e)
 

Public Attributes

const BuiltinTypesfTypes
 
ProgramConfigfConfig = nullptr
 
ErrorReporterfErrors
 
const ModulefModule = nullptr
 
SymbolTablefSymbolTable = nullptr
 

Detailed Description

Contains compiler-wide objects and state.

Definition at line 24 of file SkSLContext.h.

Constructor & Destructor Documentation

◆ Context()

Context::Context ( const BuiltinTypes types,
ErrorReporter errors 
)

Definition at line 17 of file SkSLContext.cpp.

18 : fTypes(types)
19 , fErrors(&errors) {
21}
#define SkASSERT(cond)
Definition SkAssert.h:116
const BuiltinTypes & fTypes
Definition SkSLContext.h:30
ErrorReporter * fErrors
Definition SkSLContext.h:36
static bool IsAttached()
Definition SkSLPool.cpp:44

◆ ~Context()

Context::~Context ( )

Definition at line 23 of file SkSLContext.cpp.

23 {
25}

Member Function Documentation

◆ setErrorReporter()

void SkSL::Context::setErrorReporter ( ErrorReporter e)
inline

Definition at line 38 of file SkSLContext.h.

38 {
39 SkASSERT(e);
40 fErrors = e;
41 }

Member Data Documentation

◆ fConfig

ProgramConfig* SkSL::Context::fConfig = nullptr

Definition at line 33 of file SkSLContext.h.

◆ fErrors

ErrorReporter* SkSL::Context::fErrors

Definition at line 36 of file SkSLContext.h.

◆ fModule

const Module* SkSL::Context::fModule = nullptr

Definition at line 44 of file SkSLContext.h.

◆ fSymbolTable

SymbolTable* SkSL::Context::fSymbolTable = nullptr

Definition at line 48 of file SkSLContext.h.

◆ fTypes

const BuiltinTypes& SkSL::Context::fTypes

Definition at line 30 of file SkSLContext.h.


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