• Home
  • Raw
  • Download

Lines Matching refs:content

59 void SkPDFUtils::MoveTo(SkScalar x, SkScalar y, SkWStream* content) {  in MoveTo()  argument
60 SkPDFUtils::AppendScalar(x, content); in MoveTo()
61 content->writeText(" "); in MoveTo()
62 SkPDFUtils::AppendScalar(y, content); in MoveTo()
63 content->writeText(" m\n"); in MoveTo()
66 void SkPDFUtils::AppendLine(SkScalar x, SkScalar y, SkWStream* content) { in AppendLine() argument
67 SkPDFUtils::AppendScalar(x, content); in AppendLine()
68 content->writeText(" "); in AppendLine()
69 SkPDFUtils::AppendScalar(y, content); in AppendLine()
70 content->writeText(" l\n"); in AppendLine()
75 SkScalar dstX, SkScalar dstY, SkWStream* content) { in append_cubic() argument
77 SkPDFUtils::AppendScalar(ctl1X, content); in append_cubic()
78 content->writeText(" "); in append_cubic()
79 SkPDFUtils::AppendScalar(ctl1Y, content); in append_cubic()
80 content->writeText(" "); in append_cubic()
83 SkPDFUtils::AppendScalar(ctl2X, content); in append_cubic()
84 content->writeText(" "); in append_cubic()
85 SkPDFUtils::AppendScalar(ctl2Y, content); in append_cubic()
86 content->writeText(" "); in append_cubic()
88 SkPDFUtils::AppendScalar(dstX, content); in append_cubic()
89 content->writeText(" "); in append_cubic()
90 SkPDFUtils::AppendScalar(dstY, content); in append_cubic()
91 content->writeText(" "); in append_cubic()
92 content->writeText(cmd.c_str()); in append_cubic()
95 static void append_quad(const SkPoint quad[], SkWStream* content) { in append_quad() argument
99 cubic[3].fX, cubic[3].fY, content); in append_quad()
102 void SkPDFUtils::AppendRectangle(const SkRect& rect, SkWStream* content) { in AppendRectangle() argument
106 SkPDFUtils::AppendScalar(rect.fLeft, content); in AppendRectangle()
107 content->writeText(" "); in AppendRectangle()
108 SkPDFUtils::AppendScalar(bottom, content); in AppendRectangle()
109 content->writeText(" "); in AppendRectangle()
110 SkPDFUtils::AppendScalar(rect.width(), content); in AppendRectangle()
111 content->writeText(" "); in AppendRectangle()
112 SkPDFUtils::AppendScalar(rect.height(), content); in AppendRectangle()
113 content->writeText(" re\n"); in AppendRectangle()
117 bool doConsumeDegerates, SkWStream* content, in EmitPath() argument
120 SkPDFUtils::AppendRectangle({0, 0, 0, 0}, content); in EmitPath()
136 SkPDFUtils::AppendRectangle(rect, content); in EmitPath()
190 currentSegment.writeToStream(content); in EmitPath()
199 currentSegment.writeToStream(content); in EmitPath()
203 void SkPDFUtils::ClosePath(SkWStream* content) { in ClosePath() argument
204 content->writeText("h\n"); in ClosePath()
208 SkWStream* content) { in PaintPath() argument
210 content->writeText("f"); in PaintPath()
212 content->writeText("B"); in PaintPath()
214 content->writeText("S"); in PaintPath()
221 content->writeText("*"); in PaintPath()
224 content->writeText("\n"); in PaintPath()
227 void SkPDFUtils::StrokePath(SkWStream* content) { in StrokePath() argument
229 SkPaint::kStroke_Style, SkPath::kWinding_FillType, content); in StrokePath()
232 void SkPDFUtils::ApplyGraphicState(int objectIndex, SkWStream* content) { in ApplyGraphicState() argument
233 SkPDFWriteResourceName(content, SkPDFResourceType::kExtGState, objectIndex); in ApplyGraphicState()
234 content->writeText(" gs\n"); in ApplyGraphicState()
237 void SkPDFUtils::ApplyPattern(int objectIndex, SkWStream* content) { in ApplyPattern() argument
240 content->writeText("/Pattern CS/Pattern cs"); in ApplyPattern()
241 SkPDFWriteResourceName(content, SkPDFResourceType::kPattern, objectIndex); in ApplyPattern()
242 content->writeText(" SCN"); in ApplyPattern()
243 SkPDFWriteResourceName(content, SkPDFResourceType::kPattern, objectIndex); in ApplyPattern()
244 content->writeText(" scn\n"); in ApplyPattern()