Home
last modified time | relevance | path

Searched refs:fCompiler (Results 1 – 15 of 15) sorted by relevance

/third_party/skia/src/sksl/
DSkSLThreadContext.cpp22 : fCompiler(compiler) in ThreadContext()
23 , fOldErrorReporter(*fCompiler->fContext->fErrors) in ThreadContext()
25 fOldModifiersPool = fCompiler->fContext->fModifiersPool; in ThreadContext()
27 fOldConfig = fCompiler->fContext->fConfig; in ThreadContext()
35 fCompiler->fContext->fModifiersPool = fModifiersPool.get(); in ThreadContext()
42 fCompiler->fContext->fConfig = fConfig.get(); in ThreadContext()
43 fCompiler->fContext->fErrors = &fDefaultErrorReporter; in ThreadContext()
44 fCompiler->fContext->fIntrinsics = module.fIntrinsics.get(); in ThreadContext()
45 if (fCompiler->fContext->fIntrinsics) { in ThreadContext()
46 fCompiler->fContext->fIntrinsics->resetAlreadyIncluded(); in ThreadContext()
[all …]
DSkSLCompiler.h206 : fCompiler(*compiler) {} in CompilerErrorReporter()
209 fCompiler.handleError(msg, pos); in handleError()
213 Compiler& fCompiler;
DSkSLThreadContext.h56 static SkSL::Compiler& Compiler() { return *Instance().fCompiler; } in Compiler()
198 SkSL::Compiler* fCompiler; variable
DSkSLCompiler.cpp91 : fCompiler(compiler) { in AutoSource()
92 SkASSERT(!fCompiler->errorReporter().source()); in AutoSource()
93 fCompiler->errorReporter().setSource(source); in AutoSource()
97 fCompiler->errorReporter().setSource(nullptr); in ~AutoSource()
100 Compiler* fCompiler; member in SkSL::AutoSource
DSkSLDSLParser.cpp101 : fCompiler(*compiler) in DSLParser()
222 ErrorReporter* errorReporter = &fCompiler.errorReporter(); in program()
223 Start(&fCompiler, fKind, fSettings); in program()
237 ErrorReporter* errorReporter = &fCompiler.errorReporter(); in moduleInheritingFrom()
238 StartModule(&fCompiler, fKind, fSettings, std::move(baseModule)); in moduleInheritingFrom()
DSkSLDSLParser.h335 Compiler& fCompiler; variable
/third_party/skia/bench/
DSkSLBench.cpp61 , fCompiler(fCaps.shaderCaps()) in SkSLCompileBench()
81 std::unique_ptr<SkSL::Program> program = SkSL::DSLParser(&fCompiler, in onDraw()
85 if (fCompiler.errorCount()) { in onDraw()
86 SK_ABORT("shader compilation failed: %s\n", fCompiler.errorText().c_str()); in onDraw()
91 case Output::kGLSL: SkAssertResult(fCompiler.toGLSL(*program, &result)); break; in onDraw()
92 case Output::kMetal: SkAssertResult(fCompiler.toMetal(*program, &result)); break; in onDraw()
93 case Output::kSPIRV: SkAssertResult(fCompiler.toSPIRV(*program, &result)); break; in onDraw()
102 SkSL::Compiler fCompiler; member in SkSLCompileBench
/third_party/skia/tests/
DSkSLInterpreterTest.cpp18 : fCompiler(&fCaps) { in ProgramBuilder()
26 fProgram = fCompiler.convertProgram(SkSL::ProgramKind::kGeneric, SkSL::String(src), in ProgramBuilder()
29 ERRORF(r, "Program failed to compile:\n%s\n%s\n", src, fCompiler.errorText().c_str()); in ProgramBuilder()
37 SkSL::Compiler fCompiler; member
873 , fCompiler(compiler) {} in ExternalSqrt()
878 outTypes[0] = fCompiler.context().fTypes.fFloat.get(); in getCallParameterTypes()
889 SkSL::Compiler& fCompiler; member in ExternalSqrt
920 , fCompiler(compiler) in ExternalTable()
928 outTypes[0] = fCompiler.context().fTypes.fFloat.get(); in getCallParameterTypes()
941 SkSL::Compiler& fCompiler; member in ExternalTable
DSkDSLRuntimeEffectTest.cpp33 , fCompiler(std::make_unique<SkSL::Compiler>(fCaps.get())) in DSLTestEffect()
37 StartRuntimeShader(fCompiler.get()); in start()
106 std::unique_ptr<SkSL::Compiler> fCompiler; member in DSLTestEffect
/third_party/skia/modules/particles/include/
DSkParticleBinding.h41 , fCompiler(compiler) in SkParticleExternalFunction()
46 SkSL::Compiler& fCompiler;
/third_party/skia/modules/particles/src/
DSkParticleBinding.cpp60 outTypes[0] = fCompiler.context().fTypes.fFloat.get(); in getCallParameterTypes()
178 outTypes[0] = fCompiler.context().fTypes.fFloat2.get(); in getCallParameterTypes()
/third_party/skia/src/gpu/
DGrGpu.h83 SkSL::Compiler* shaderCompiler() const { return fCompiler.get(); } in shaderCompiler()
837 std::unique_ptr<SkSL::Compiler> fCompiler; variable
DGrGpu.cpp46 fCompiler = std::make_unique<SkSL::Compiler>(fCaps->shaderCaps()); in initCapsAndCompiler()
/third_party/skia/src/core/
DSkRuntimeEffect.cpp61 SkSL::Compiler* operator->() const { return gImpl->fCompiler; } in operator ->()
93 fCompiler = new SkSL::Compiler(fCaps.get()); in Impl()
97 SkSL::Compiler* fCompiler; member
/third_party/skia/src/sksl/dsl/
DDSLCore.cpp73 SkSL::Compiler& compiler = *instance.fCompiler; in ReleaseProgram()