Lines Matching refs:writef
49 void HCodeGenerator::writef(const char* s, va_list va) { in writef() function in SkSL::HCodeGenerator
64 void HCodeGenerator::writef(const char* s, ...) { in writef() function in SkSL::HCodeGenerator
67 this->writef(s, va); in writef()
74 this->writef("%s%s", prefix, s->fText.c_str()); in writeSection()
108 this->writef("%s%s", separator, lastIdentifier); in writeExtraConstructorParams()
118 this->writef("%s%s", separator, lastIdentifier); in writeExtraConstructorParams()
126 this->writef(" static sk_sp<GrFragmentProcessor> Make("); in writeMake()
129 this->writef("%s%s %s", separator, ParameterType(param->fType).c_str(), in writeMake()
134 this->writef(") {\n" in writeMake()
139 this->writef("%s%s", separator, param->fName.c_str()); in writeMake()
143 this->writef("));\n" in writeMake()
164 this->writef(" %s(", fFullName.c_str()); in writeConstructor()
167 this->writef("%s%s %s", separator, ParameterType(param->fType).c_str(), in writeConstructor()
172 this->writef(")\n" in writeConstructor()
175 this->writef("kNone_OptimizationFlags"); in writeConstructor()
177 this->writef(")"); in writeConstructor()
182 this->writef("\n , %s(std::move(%s)", FieldName(name).c_str(), name); in writeConstructor()
186 this->writef(", %s", s->fText.c_str()); in writeConstructor()
189 this->writef(")"); in writeConstructor()
191 this->writef("\n , %s(%s)", FieldName(name).c_str(), name); in writeConstructor()
196 this->writef("\n , %sCoordTransform(%s, %s.proxy())", field.c_str(), s->fText.c_str(), in writeConstructor()
199 this->writef(" {\n"); in writeConstructor()
203 this->writef(" this->addTextureSampler(&%s);\n", in writeConstructor()
209 this->writef(" this->addCoordTransform(&%sCoordTransform);\n", field.c_str()); in writeConstructor()
211 this->writef(" this->initClassID<%s>();\n" in writeConstructor()
220 this->writef(" %s %s;\n", FieldType(param->fType).c_str(), FieldName(name).c_str()); in writeFields()
223 this->writef(" GrCoordTransform %sCoordTransform;\n", in writeFields()
229 this->writef(kFragmentProcessorHeader, fFullName.c_str()); in generateCode()
230 this->writef("#ifndef %s_DEFINED\n" in generateCode()
234 this->writef("#include \"SkTypes.h\"\n" in generateCode()
237 this->writef("#include \"GrFragmentProcessor.h\"\n" in generateCode()
241 this->writef("class %s : public GrFragmentProcessor {\n" in generateCode()
250 this->writef(" %s %s() const { return %s; }\n", in generateCode()
254 this->writef(" const char* name() const override { return \"%s\"; }\n" in generateCode()
258 this->writef(" GrGLSLFragmentProcessor* onCreateGLSLInstance() const override;\n" in generateCode()
264 this->writef(" typedef GrFragmentProcessor INHERITED;\n" in generateCode()
267 this->writef("#endif\n" in generateCode()