Home
last modified time | relevance | path

Searched refs:appendf (Results 1 – 25 of 137) sorted by relevance

123456

/external/skia/src/gpu/ganesh/glsl/
DGrGLSLShaderBuilder.cpp53 this->functions().appendf("%s %s(", SkSLTypeString(returnType), mangledName); in appendFunctionDecl()
69 this->functions().appendf(" {\n" in emitFunction()
75 this->functions().appendf("%s {\n" in emitFunction()
88 this->functions().appendf("%s;\n", declaration); in emitFunctionPrototype()
93 out->appendf(".%s", swizzle.asString().c_str()); in append_texture_swizzle()
101 out->appendf("sample(%s, %s)", sampler, coordName); in appendTextureLookup()
132 load.appendf("subpassLoad(%s)", input); in appendInputLoad()
158 body.appendf("float G = %s[0];", coeffs); in appendColorGamutXform()
159 body.appendf("float A = %s[1];", coeffs); in appendColorGamutXform()
160 body.appendf("float B = %s[2];", coeffs); in appendColorGamutXform()
[all …]
DGrGLSLVertexGeoBuilder.cpp19 out->appendf("{float2 _posTmp = %s.xy / %s.z;", p, p); in emitNormalizedSkPosition()
22 out->appendf("{float2 _posTmp = %s;", devPos); in emitNormalizedSkPosition()
24 out->appendf("_posTmp = floor(_posTmp) + float2(0.5);" in emitNormalizedSkPosition()
27 out->appendf("sk_Position = %s.xy0z;", devPos); in emitNormalizedSkPosition()
30 out->appendf("sk_Position = %s.xy01;", devPos); in emitNormalizedSkPosition()
DGrGLSLShaderBuilder.h70 this->definitions().appendf("const %s %s = %s;\n", type, name, value); in defineConstant()
74 this->definitions().appendf("const int %s = %i;\n", name, value); in defineConstant()
78 this->definitions().appendf("const float %s = %f;\n", name, value); in defineConstant()
83 this->definitions().appendf("const %s %s = ", type, name); in defineConstantf()
/external/skia/tests/
DPathOpsOpLoopThreadedTest.cpp26 str->appendf("%d", asInt); in add_point()
28 str->appendf("%1.9gf", x); in add_point()
30 str->appendf(","); in add_point()
33 str->appendf("%d", asInt); in add_point()
35 str->appendf("%1.9gf", y); in add_point()
70 pathStr.appendf(" SkPath path, pathB;\n"); in testOpLoopsMain()
71 pathStr.appendf(" path.moveTo(%d,%d);\n", a, b); in testOpLoopsMain()
72 pathStr.appendf(" path.cubicTo(%d,%d, ", c, d); in testOpLoopsMain()
74 pathStr.appendf(", "); in testOpLoopsMain()
76 pathStr.appendf(");\n"); in testOpLoopsMain()
[all …]
DPathOpsSimplifyQuadralateralsThreadedTest.cpp58 pathStr.appendf(" SkPath path;\n"); in testSimplifyQuadralateralsMain()
59 pathStr.appendf(" path.moveTo(%d, %d);\n", ax, ay); in testSimplifyQuadralateralsMain()
60 pathStr.appendf(" path.lineTo(%d, %d);\n", bx, by); in testSimplifyQuadralateralsMain()
61 pathStr.appendf(" path.lineTo(%d, %d);\n", cx, cy); in testSimplifyQuadralateralsMain()
62 pathStr.appendf(" path.lineTo(%d, %d);\n", dx, dy); in testSimplifyQuadralateralsMain()
63 pathStr.appendf(" path.close();\n"); in testSimplifyQuadralateralsMain()
64 pathStr.appendf(" path.moveTo(%d, %d);\n", ex, ey); in testSimplifyQuadralateralsMain()
65 pathStr.appendf(" path.lineTo(%d, %d);\n", fx, fy); in testSimplifyQuadralateralsMain()
66 pathStr.appendf(" path.lineTo(%d, %d);\n", gx, gy); in testSimplifyQuadralateralsMain()
67 pathStr.appendf(" path.lineTo(%d, %d);\n", hx, hy); in testSimplifyQuadralateralsMain()
[all …]
DPathOpsSimplifyQuadThreadedTest.cpp58 pathStr.appendf(" SkPath path;\n"); in testSimplifyQuadsMain()
59 pathStr.appendf(" path.moveTo(%d, %d);\n", ax, ay); in testSimplifyQuadsMain()
60 pathStr.appendf(" path.quadTo(%d, %d, %d, %d);\n", bx, by, cx, cy); in testSimplifyQuadsMain()
61 pathStr.appendf(" path.lineTo(%d, %d);\n", dx, dy); in testSimplifyQuadsMain()
62 pathStr.appendf(" path.close();\n"); in testSimplifyQuadsMain()
63 pathStr.appendf(" path.moveTo(%d, %d);\n", ex, ey); in testSimplifyQuadsMain()
64 pathStr.appendf(" path.lineTo(%d, %d);\n", fx, fy); in testSimplifyQuadsMain()
65 pathStr.appendf(" path.quadTo(%d, %d, %d, %d);\n", gx, gy, hx, hy); in testSimplifyQuadsMain()
66 pathStr.appendf(" path.close();\n"); in testSimplifyQuadsMain()
67 pathStr.appendf(" testSimplify(reporter, path, filename);\n"); in testSimplifyQuadsMain()
[all …]
DPathOpsOpRectThreadedTest.cpp63 pathStr.appendf(" SkPath path, pathB;"); in testPathOpsRectsMain()
64 pathStr.appendf(" path.setFillType(SkPathFillType::k%s);\n", in testPathOpsRectsMain()
67 pathStr.appendf(" path.addRect(%d, %d, %d, %d," in testPathOpsRectsMain()
69 pathStr.appendf(" path.addRect(%d, %d, %d, %d," in testPathOpsRectsMain()
71 pathStr.appendf(" pathB.setFillType(SkPathFillType::k%s);\n", in testPathOpsRectsMain()
74 pathStr.appendf(" pathB.addRect(%d, %d, %d, %d," in testPathOpsRectsMain()
76 pathStr.appendf(" pathB.addRect(%d, %d, %d, %d," in testPathOpsRectsMain()
78 pathStr.appendf(" testPathOp(reporter, path, pathB, %s, filename);\n", in testPathOpsRectsMain()
80 pathStr.appendf("}\n\n"); in testPathOpsRectsMain()
157 pathStr.appendf(" SkPath path, pathB;"); in testPathOpsFastMain()
[all …]
DPathOpsOpCubicThreadedTest.cpp51 pathStr.appendf(" SkPath path, pathB;\n"); in testOpCubicsMain()
52 pathStr.appendf(" path.setFillType(SkPathFillType::k%s);\n", in testOpCubicsMain()
55 pathStr.appendf(" path.moveTo(%d,%d);\n", state.fA, state.fB); in testOpCubicsMain()
56 pathStr.appendf(" path.cubicTo(%d,%d, %d,%d, %d,%d);\n", state.fC, state.fD, in testOpCubicsMain()
58 pathStr.appendf(" path.close();\n"); in testOpCubicsMain()
59 pathStr.appendf(" pathB.setFillType(SkPathFillType::k%s);\n", in testOpCubicsMain()
62 pathStr.appendf(" pathB.moveTo(%d,%d);\n", a, b); in testOpCubicsMain()
63 pathStr.appendf(" pathB.cubicTo(%d,%d, %d,%d, %d,%d);\n", c, d, in testOpCubicsMain()
65 pathStr.appendf(" pathB.close();\n"); in testOpCubicsMain()
66 pathStr.appendf(" testPathOp(reporter, path, pathB, %s, filename);\n", in testOpCubicsMain()
[all …]
DPathOpsSimplifyDegenerateThreadedTest.cpp50 pathStr.appendf(" path.moveTo(%d, %d);\n", ax, ay); in testSimplifyDegeneratesMain()
51 pathStr.appendf(" path.lineTo(%d, %d);\n", bx, by); in testSimplifyDegeneratesMain()
52 pathStr.appendf(" path.lineTo(%d, %d);\n", cx, cy); in testSimplifyDegeneratesMain()
53 pathStr.appendf(" path.close();\n"); in testSimplifyDegeneratesMain()
54 pathStr.appendf(" path.moveTo(%d, %d);\n", dx, dy); in testSimplifyDegeneratesMain()
55 pathStr.appendf(" path.lineTo(%d, %d);\n", ex, ey); in testSimplifyDegeneratesMain()
56 pathStr.appendf(" path.lineTo(%d, %d);\n", fx, fy); in testSimplifyDegeneratesMain()
57 pathStr.appendf(" path.close();\n"); in testSimplifyDegeneratesMain()
DPathOpsSimplifyTrianglesThreadedTest.cpp53 pathStr.appendf(" path.moveTo(%d, %d);\n", ax, ay); in testSimplifyTrianglesMain()
54 pathStr.appendf(" path.lineTo(%d, %d);\n", bx, by); in testSimplifyTrianglesMain()
55 pathStr.appendf(" path.lineTo(%d, %d);\n", cx, cy); in testSimplifyTrianglesMain()
56 pathStr.appendf(" path.close();\n"); in testSimplifyTrianglesMain()
57 pathStr.appendf(" path.moveTo(%d, %d);\n", dx, dy); in testSimplifyTrianglesMain()
58 pathStr.appendf(" path.lineTo(%d, %d);\n", ex, ey); in testSimplifyTrianglesMain()
59 pathStr.appendf(" path.lineTo(%d, %d);\n", fx, fy); in testSimplifyTrianglesMain()
60 pathStr.appendf(" path.close();\n"); in testSimplifyTrianglesMain()
DPathOpsOpCircleThreadedTest.cpp48 pathStr.appendf(" SkPath path, pathB;\n"); in testOpCirclesMain()
49 pathStr.appendf(" path.setFillType(SkPathFillType::k%s);\n", in testOpCirclesMain()
52 pathStr.appendf(" path.addCircle(%d, %d, %d, %s);\n", state.fA, state.fB, in testOpCirclesMain()
54 pathStr.appendf(" pathB.setFillType(SkPathFillType::k%s);\n", in testOpCirclesMain()
57 pathStr.appendf(" pathB.addCircle(%d, %d, %d, %s);\n", a, b, in testOpCirclesMain()
59 pathStr.appendf(" testPathOp(reporter, path, pathB, %s, filename);\n", in testOpCirclesMain()
61 pathStr.appendf("}\n"); in testOpCirclesMain()
DSerializationTest.cpp496 s.appendf("Index: %d\n", index); in DumpTypeface()
497 s.appendf("Length: %zu\n", length); in DumpTypeface()
523 m.appendf("Top: %f\n", metrics.fTop); in DumpFontMetrics()
524 m.appendf("Ascent: %f\n", metrics.fAscent); in DumpFontMetrics()
525 m.appendf("Descent: %f\n", metrics.fDescent); in DumpFontMetrics()
526 m.appendf("Bottom: %f\n", metrics.fBottom); in DumpFontMetrics()
527 m.appendf("Leading: %f\n", metrics.fLeading); in DumpFontMetrics()
528 m.appendf("AvgCharWidth: %f\n", metrics.fAvgCharWidth); in DumpFontMetrics()
529 m.appendf("MaxCharWidth: %f\n", metrics.fMaxCharWidth); in DumpFontMetrics()
530 m.appendf("XMin: %f\n", metrics.fXMin); in DumpFontMetrics()
[all …]
DPathOpsQuadLineIntersectionThreadedTest.cpp55 pathStr.appendf(" path.moveTo(%1.9g, %1.9g);\n", quad[0].fX, quad[0].fY); in testLineIntersect()
56 pathStr.appendf(" path.quadTo(%1.9g, %1.9g, %1.9g, %1.9g);\n", quad[1].fX, in testLineIntersect()
58 pathStr.appendf(" path.moveTo(%1.9g, %1.9g);\n", line[0].fX, line[0].fY); in testLineIntersect()
59 pathStr.appendf(" path.lineTo(%1.9g, %1.9g);\n", line[1].fX, line[1].fY); in testLineIntersect()
DPathOpsSimplifyRectThreadedTest.cpp74 pathStr.appendf(" path.addRect(%d, %d, %d, %d," in testSimplify4x4RectsMain()
106 pathStr.appendf(" path.addRect(%d, %d, %d, %d," in testSimplify4x4RectsMain()
138 pathStr.appendf(" path.addRect(%d, %d, %d, %d," in testSimplify4x4RectsMain()
170 pathStr.appendf(" path.addRect(%d, %d, %d, %d," in testSimplify4x4RectsMain()
/external/skia/docs/examples/
DPaintDump.cpp36 s.appendf("p.setStrokeWidth(%.9g);\n", p.getStrokeWidth()); in PaintStringDump()
39 s.appendf("p.setStrokeMiter(%.9g);\n", p.getStrokeMiter()); in PaintStringDump()
43 s.appendf("p.setColor4f({%.9g, %.9g, %.9g, %.9g}, nullptr);\n", c.fR, c.fG, c.fB, c.fA); in PaintStringDump()
46 s.appendf("p.setAntiAlias(%s);\n", str(p.isAntiAlias())); in PaintStringDump()
49 s.appendf("p.setDither(%s);\n", str(p.isDither())); in PaintStringDump()
52 s.appendf("p.setStrokeCap(%s);\n", str(p.getStrokeCap())); in PaintStringDump()
55 s.appendf("p.setStrokeJoin(%s);\n", str(p.getStrokeJoin())); in PaintStringDump()
58 s.appendf("p.setStyle(%s);\n", str(p.getStyle())); in PaintStringDump()
61 s.appendf("p.setBlendMode(SkBlendMode::k%s);\n", in PaintStringDump()
65 s.appendf("p.setPathEffect(/*FIXME*/);\n"); in PaintStringDump()
[all …]
/external/skia/src/gpu/graphite/
DContextUtils.cpp82 SkSL::String::appendf(&result, "layout (binding=%d) uniform %sUniforms {\n", bufferID, name); in get_uniform_header()
95 SkSL::String::appendf(&result, in get_uniforms()
128 SkSL::String::appendf(&result, "// %s uniforms\n", readers[i].entry()->fName); in EmitPaintParamsUniforms()
157 SkSL::String::appendf(&result, "struct %sUniformData {\n", bufferTypePrefix); in EmitPaintParamsStorageBuffer()
163 SkSL::String::appendf(&result, "// %s uniforms\n", readers[i].entry()->fName); in EmitPaintParamsStorageBuffer()
166 SkSL::String::appendf( in EmitPaintParamsStorageBuffer()
169 SkSL::String::appendf(&result, "[%u]", u.count()); in EmitPaintParamsStorageBuffer()
176 SkSL::String::appendf(&result, in EmitPaintParamsStorageBuffer()
201 SkSL::String::appendf(&result, "// %s samplers\n", readers[i].entry()->fName); in EmitTexturesAndSamplers()
205 SkSL::String::appendf(&result, " uniform sampler2D %s_%d;\n", t.name(), i); in EmitTexturesAndSamplers()
[all …]
/external/skia/src/gpu/ganesh/
DGrThreadSafePipelineBuilder.cpp30 out->appendf("Shader Compilations: %d\n", fShaderCompilations.load()); in dump()
33 out->appendf("Number of Inline compile failures %d\n", fNumInlineCompilationFailures.load()); in dump()
35 out->appendf("Inline Program Cache %s %d\n", cache_result_to_str(i), in dump()
40 out->appendf("Number of precompile failures %d\n", fNumPreCompilationFailures.load()); in dump()
42 out->appendf("Precompile Program Cache %s %d\n", cache_result_to_str(i), in dump()
47 out->appendf("Total number of compilation failures %d\n", fNumCompilationFailures.load()); in dump()
48 out->appendf("Total number of partial compilation successes %d\n", in dump()
50 out->appendf("Total number of compilation successes %d\n", fNumCompilationSuccesses.load()); in dump()
DGrShaderVar.cpp25 out->appendf("layout(%s) ", fLayoutQualifier.c_str()); in appendDecl()
28 out->appendf("%s ", fExtraModifiers.c_str()); in appendDecl()
31 out->appendf("%s ", type_modifier_string(this->getTypeModifier())); in appendDecl()
36 out->appendf("%s %s[%d]", in appendDecl()
41 out->appendf("%s %s", SkSLTypeString(effectiveType), this->getName().c_str()); in appendDecl()
DGrGpu.cpp817 out->appendf("Textures Created: %d\n", fTextureCreates); in dump()
818 out->appendf("Texture Uploads: %d\n", fTextureUploads); in dump()
819 out->appendf("Transfers to Texture: %d\n", fTransfersToTexture); in dump()
820 out->appendf("Transfers from Surface: %d\n", fTransfersFromSurface); in dump()
821 out->appendf("Stencil Buffer Creates: %d\n", fStencilAttachmentCreates); in dump()
822 out->appendf("MSAA Attachment Creates: %d\n", fMSAAAttachmentCreates); in dump()
823 out->appendf("Number of draws: %d\n", fNumDraws); in dump()
824 out->appendf("Number of Scratch Textures reused %d\n", fNumScratchTexturesReused); in dump()
825 out->appendf("Number of Scratch MSAA Attachments reused %d\n", in dump()
827 out->appendf("Number of Render Passes: %d\n", fRenderPasses); in dump()
[all …]
/external/skia/tools/trace/
DSkDebugfTracer.cpp31 args.appendf("%s=%s", argNames[i], value.as_bool ? "true" : "false"); in addTraceEvent()
34 args.appendf("%s=%u", argNames[i], static_cast<uint32_t>(argValues[i])); in addTraceEvent()
37 args.appendf("%s=%d", argNames[i], static_cast<int32_t>(argValues[i])); in addTraceEvent()
40 args.appendf("%s=%g", argNames[i], value.as_double); in addTraceEvent()
43 args.appendf("%s=0x%p", argNames[i], value.as_pointer); in addTraceEvent()
59 args.appendf("%s=\"%s\"", argNames[i], string.c_str()); in addTraceEvent()
63 args.appendf("%s=<unknown type>", argNames[i]); in addTraceEvent()
/external/skia/src/utils/
DSkJSONWriter.cpp21 this->appendf("%" PRId64, value); in appendS64()
26 this->appendf("%" PRIu64, value); in appendU64()
31 this->appendf("\"0x%" PRIx64 "\"", value); in appendHexU64()
34 void SkJSONWriter::appendf(const char* fmt, ...) { in appendf() function in SkJSONWriter
DSkShaderUtils.cpp104 SkSL::String::appendf(&fPretty, "%c", fInput[fIndex++]); in appendChar()
132 SkSL::String::appendf(&fPretty, "%c", fInput[fIndex++]); in parseUntilNewline()
155 SkSL::String::appendf(&fPretty, "%c", fInput[fIndex++]); in parseUntil()
209 SkSL::String::appendf(&abortText, "%4i\t%s\n", lineNumber, lineText); in BuildShaderErrorMessage()
211 SkSL::String::appendf(&abortText, "Errors:\n%s", errors); in BuildShaderErrorMessage()
DSkJSONWriter.h228 void appendPointer(const void* value) { this->beginValue(); this->appendf("\"%p\"", value); } in appendPointer()
237 void appendS32(int32_t value) { this->beginValue(); this->appendf("%d", value); } in appendS32()
239 void appendU32(uint32_t value) { this->beginValue(); this->appendf("%u", value); } in appendU32()
241 void appendFloat(float value) { this->beginValue(); this->appendf("%g", value); } in appendFloat()
242 void appendDouble(double value) { this->beginValue(); this->appendf("%g", value); } in appendDouble()
245 this->appendf("%.*g", digits, value); in appendFloatDigits()
249 this->appendf("%.*g", digits, value); in appendDoubleDigits()
251 void appendHexU32(uint32_t value) { this->beginValue(); this->appendf("\"0x%x\"", value); } in appendHexU32()
330 void appendf(const char* fmt, ...) SK_PRINTF_LIKE(2, 3);
/external/skia/tools/viewer/
DStrokeVerbSlide.cpp88 caption.appendf("VerbType_%s", verb_type_name(fVerbType)); in draw()
90 caption.appendf(" (%s)", SkCubicTypeName(SkClassifyCubic(fPoints))); in draw()
92 caption.appendf(" (w=%f)", fConicWeight); in draw()
95 caption.appendf(" (stroke_width=%f)", fStrokeWidth); in draw()
/external/skia/src/core/
DSkScalerContext.h130 msg.appendf(" Rec\n"); in dump()
131 msg.appendf(" textsize %a prescale %a preskew %a post [%a %a %a %a]\n", in dump()
134 msg.appendf(" frame %g miter %g format %d join %d cap %d flags %#hx\n", in dump()
136 msg.appendf(" lum bits %x, device gamma %d, paint gamma %d contrast %d\n", fLumBits, in dump()
138 msg.appendf(" foreground color %x\n", fForegroundColor); in dump()

123456