Home
last modified time | relevance | path

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

12

/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/flutter/skia/bench/
DSkSLBench.cpp27 std::unique_ptr<SkSL::Program> program = fCompiler.convertProgram( in onDraw()
31 if (!fCompiler.errorCount()) { in onDraw()
32 fCompiler.optimize(*program); in onDraw()
34 printf("%s\n", fCompiler.errorText().c_str()); in onDraw()
43 SkSL::Compiler fCompiler; member in SkSLBench
/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/flutter/skia/src/gpu/effects/
DGrSkSLFP.cpp25 fBaseProgram = fCompiler.convertProgram(fKind, SkSL::String(sksl), settings); in GrSkSLFPFactory()
26 if (fCompiler.errorCount()) { in GrSkSLFPFactory()
27 SkDebugf("%s\n", fCompiler.errorText().c_str()); in GrSkSLFPFactory()
30 SkASSERT(!fCompiler.errorCount()); in GrSkSLFPFactory()
58 if (&v->fType == fCompiler.context().fInt_Type.get() || in getSpecialization()
59 &v->fType == fCompiler.context().fShort_Type.get()) { in getSpecialization()
64 } else if (&v->fType == fCompiler.context().fFloat_Type.get() || in getSpecialization()
65 &v->fType == fCompiler.context().fHalf_Type.get()) { in getSpecialization()
70 } else if (&v->fType == fCompiler.context().fBool_Type.get()) { in getSpecialization()
74 } else if (&v->fType == fCompiler.context().fFloat4_Type.get() || in getSpecialization()
[all …]
DGrSkSLFP.h173 SkSL::Compiler fCompiler; variable
/third_party/flutter/skia/src/gpu/gl/
DGrGLContext.cpp94 delete fCompiler; in ~GrGLContext()
98 if (!fCompiler) { in compiler()
99 fCompiler = new SkSL::Compiler(); in compiler()
101 return fCompiler; in compiler()
DGrGLContext.h102 GrGLContext(ConstructorArgs&& args) : INHERITED(std::move(args)), fCompiler(nullptr) {} in GrGLContext()
104 mutable SkSL::Compiler* fCompiler; variable
/third_party/flutter/skia/tests/
DSkSLInterpreterTest.cpp852 , fCompiler(*compiler) {} in JSONExternalValue()
855 return type() != *fCompiler.context().fVoid_Type; in canRead()
859 if (type() == *fCompiler.context().fInt_Type) { in read()
861 } else if (type() == *fCompiler.context().fFloat_Type) { in read()
863 } else if (type() == *fCompiler.context().fBool_Type) { in read()
874 return (SkSL::ExternalValue*) fCompiler.takeOwnership(std::unique_ptr<Symbol>( in getChild()
875 new JSONExternalValue(name, &v, &fCompiler))); in getChild()
882 SkSL::Compiler& fCompiler; member in JSONExternalValue
994 , fCompiler(compiler) in FunctionExternalValue()
1006 outTypes[0] = fCompiler.context().fFloat_Type.get(); in getCallParameterTypes()
[all …]
/third_party/skia/modules/particles/include/
DSkParticleBinding.h41 , fCompiler(compiler) in SkParticleExternalFunction()
46 SkSL::Compiler& fCompiler;
/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/flutter/skia/modules/particles/src/
DSkParticleEffect.cpp34 , fCompiler(compiler) in SkParticleExternalValue()
41 SkSL::Compiler& fCompiler; member in SkParticleExternalValue
56 outTypes[0] = fCompiler.context().fFloat_Type.get(); in getCallParameterTypes()
101 outTypes[0] = fCompiler.context().fFloat_Type.get(); in getCallParameterTypes()
164 outTypes[0] = fCompiler.context().fFloat_Type.get(); in getCallParameterTypes()
/third_party/flutter/skia/src/gpu/dawn/
DGrDawnGpu.h67 return fCompiler.get(); in shaderCompiler()
147 std::unique_ptr<SkSL::Compiler> fCompiler; variable
DGrDawnGpu.cpp52 , fCompiler(new SkSL::Compiler()) { in GrDawnGpu()
/third_party/flutter/skia/src/gpu/mtl/
DGrMtlGpu.h90 SkSL::Compiler* shaderCompiler() const { return fCompiler.get(); } in shaderCompiler()
241 std::unique_ptr<SkSL::Compiler> fCompiler; variable
/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/flutter/skia/src/gpu/vk/
DGrVkGpu.h125 return fCompiler; in shaderCompiler()
310 SkSL::Compiler* fCompiler; variable
/third_party/skia/src/gpu/
DGrGpu.h69 SkSL::Compiler* shaderCompiler() const { return fCompiler.get(); } in shaderCompiler()
823 std::unique_ptr<SkSL::Compiler> fCompiler; variable
/third_party/flutter/skia/src/sksl/
DSkSLJIT.h298 Compiler& fCompiler; variable
/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

12