Lines Matching refs:DSLWriter
34 DSLWriter::DSLWriter(SkSL::Compiler* compiler, SkSL::ProgramKind kind, int flags) in DSLWriter() function in SkSL::dsl::DSLWriter
60 DSLWriter::~DSLWriter() { in ~DSLWriter()
75 SkSL::IRGenerator& DSLWriter::IRGenerator() { in IRGenerator()
79 const SkSL::Context& DSLWriter::Context() { in Context()
83 const std::shared_ptr<SkSL::SymbolTable>& DSLWriter::SymbolTable() { in SymbolTable()
87 void DSLWriter::Reset() { in Reset()
94 const SkSL::Modifiers* DSLWriter::Modifiers(const SkSL::Modifiers& modifiers) { in Modifiers()
98 const char* DSLWriter::Name(const char* name) { in Name()
108 void DSLWriter::StartFragmentProcessor(GrGLSLFragmentProcessor* processor, in StartFragmentProcessor()
110 DSLWriter& instance = Instance(); in StartFragmentProcessor()
116 void DSLWriter::EndFragmentProcessor() { in EndFragmentProcessor()
117 DSLWriter& instance = Instance(); in EndFragmentProcessor()
124 GrGLSLUniformHandler::UniformHandle DSLWriter::VarUniformHandle(const DSLVar& var) { in VarUniformHandle()
129 std::unique_ptr<SkSL::Expression> DSLWriter::Call(const FunctionDeclaration& function, in Call()
136 std::unique_ptr<SkSL::Expression> DSLWriter::Call(std::unique_ptr<SkSL::Expression> expr, in Call()
143 std::unique_ptr<SkSL::Expression> DSLWriter::Check(std::unique_ptr<SkSL::Expression> expr) { in Check()
144 if (DSLWriter::Compiler().errorCount()) { in Check()
145 DSLWriter::ReportError(DSLWriter::Compiler().errorText(/*showCount=*/false).c_str()); in Check()
146 DSLWriter::Compiler().setErrorCount(0); in Check()
151 DSLPossibleExpression DSLWriter::Coerce(std::unique_ptr<Expression> left, const SkSL::Type& type) { in Coerce()
155 DSLPossibleExpression DSLWriter::Construct(const SkSL::Type& type, in Construct()
166 std::unique_ptr<SkSL::Expression> DSLWriter::ConvertBinary(std::unique_ptr<Expression> left, in ConvertBinary()
172 std::unique_ptr<SkSL::Expression> DSLWriter::ConvertField(std::unique_ptr<Expression> base, in ConvertField()
177 std::unique_ptr<SkSL::Expression> DSLWriter::ConvertIndex(std::unique_ptr<Expression> base, in ConvertIndex()
182 std::unique_ptr<SkSL::Expression> DSLWriter::ConvertPostfix(std::unique_ptr<Expression> expr, in ConvertPostfix()
187 std::unique_ptr<SkSL::Expression> DSLWriter::ConvertPrefix(Operator op, in ConvertPrefix()
192 DSLPossibleStatement DSLWriter::ConvertSwitch(std::unique_ptr<Expression> value, in ConvertSwitch()
210 void DSLWriter::ReportError(const char* msg, PositionInfo* info) { in ReportError()
224 const SkSL::Variable& DSLWriter::Var(DSLVar& var) { in Var()
227 DSLWriter::IRGenerator().checkVarDeclaration(/*offset=*/-1, var.fModifiers.fModifiers, in Var()
230 std::unique_ptr<SkSL::Variable> skslvar = DSLWriter::IRGenerator().convertVar( in Var()
241 var.fDeclaration = DSLWriter::IRGenerator().convertVarDeclaration( in Var()
248 std::unique_ptr<SkSL::Variable> DSLWriter::ParameterVar(DSLVar& var) { in ParameterVar()
252 return DSLWriter::IRGenerator().convertVar(/*offset=*/-1, var.fModifiers.fModifiers, in ParameterVar()
257 std::unique_ptr<SkSL::Statement> DSLWriter::Declaration(DSLVar& var) { in Declaration()
262 void DSLWriter::MarkDeclared(DSLVar& var) { in MarkDeclared()
267 std::unique_ptr<SkSL::Program> DSLWriter::ReleaseProgram() { in ReleaseProgram()
268 DSLWriter& instance = Instance(); in ReleaseProgram()
291 DSLWriter& DSLWriter::Instance() { in Instance()
295 void DSLWriter::SetInstance(std::unique_ptr<DSLWriter> instance) { in SetInstance()
301 thread_local DSLWriter* instance = nullptr;
303 DSLWriter& DSLWriter::Instance() { in Instance()
308 void DSLWriter::SetInstance(std::unique_ptr<DSLWriter> newInstance) { in SetInstance()
317 delete static_cast<DSLWriter*>(dslWriter); in destroy_dslwriter()
332 DSLWriter& DSLWriter::Instance() { in Instance()
333 DSLWriter* instance = static_cast<DSLWriter*>(pthread_getspecific(get_pthread_key())); in Instance()
338 void DSLWriter::SetInstance(std::unique_ptr<DSLWriter> instance) { in SetInstance()
339 delete static_cast<DSLWriter*>(pthread_getspecific(get_pthread_key())); in SetInstance()