Lines Matching full:content

48 void SkPDFUtils::AppendTransform(const SkMatrix& matrix, SkWStream* content) {  in AppendTransform()  argument
54 SkPDFUtils::AppendScalar(values[i], content); in AppendTransform()
55 content->writeText(" "); in AppendTransform()
57 content->writeText("cm\n"); in AppendTransform()
61 void SkPDFUtils::MoveTo(SkScalar x, SkScalar y, SkWStream* content) { in MoveTo() argument
62 SkPDFUtils::AppendScalar(x, content); in MoveTo()
63 content->writeText(" "); in MoveTo()
64 SkPDFUtils::AppendScalar(y, content); in MoveTo()
65 content->writeText(" m\n"); in MoveTo()
69 void SkPDFUtils::AppendLine(SkScalar x, SkScalar y, SkWStream* content) { in AppendLine() argument
70 SkPDFUtils::AppendScalar(x, content); in AppendLine()
71 content->writeText(" "); in AppendLine()
72 SkPDFUtils::AppendScalar(y, content); in AppendLine()
73 content->writeText(" l\n"); in AppendLine()
79 SkScalar dstX, SkScalar dstY, SkWStream* content) { in AppendCubic() argument
81 SkPDFUtils::AppendScalar(ctl1X, content); in AppendCubic()
82 content->writeText(" "); in AppendCubic()
83 SkPDFUtils::AppendScalar(ctl1Y, content); in AppendCubic()
84 content->writeText(" "); in AppendCubic()
87 SkPDFUtils::AppendScalar(ctl2X, content); in AppendCubic()
88 content->writeText(" "); in AppendCubic()
89 SkPDFUtils::AppendScalar(ctl2Y, content); in AppendCubic()
90 content->writeText(" "); in AppendCubic()
92 SkPDFUtils::AppendScalar(dstX, content); in AppendCubic()
93 content->writeText(" "); in AppendCubic()
94 SkPDFUtils::AppendScalar(dstY, content); in AppendCubic()
95 content->writeText(" "); in AppendCubic()
96 content->writeText(cmd.c_str()); in AppendCubic()
99 static void append_quad(const SkPoint quad[], SkWStream* content) { in append_quad() argument
103 cubic[3].fX, cubic[3].fY, content); in append_quad()
107 void SkPDFUtils::AppendRectangle(const SkRect& rect, SkWStream* content) { in AppendRectangle() argument
111 SkPDFUtils::AppendScalar(rect.fLeft, content); in AppendRectangle()
112 content->writeText(" "); in AppendRectangle()
113 SkPDFUtils::AppendScalar(bottom, content); in AppendRectangle()
114 content->writeText(" "); in AppendRectangle()
115 SkPDFUtils::AppendScalar(rect.width(), content); in AppendRectangle()
116 content->writeText(" "); in AppendRectangle()
117 SkPDFUtils::AppendScalar(rect.height(), content); in AppendRectangle()
118 content->writeText(" re\n"); in AppendRectangle()
123 bool doConsumeDegerates, SkWStream* content) { in EmitPath() argument
181 currentSegment.writeToStream(content); in EmitPath()
190 currentSegment.writeToStream(content); in EmitPath()
195 void SkPDFUtils::ClosePath(SkWStream* content) { in ClosePath() argument
196 content->writeText("h\n"); in ClosePath()
201 SkWStream* content) { in PaintPath() argument
203 content->writeText("f"); in PaintPath()
205 content->writeText("B"); in PaintPath()
207 content->writeText("S"); in PaintPath()
214 content->writeText("*"); in PaintPath()
217 content->writeText("\n"); in PaintPath()
221 void SkPDFUtils::StrokePath(SkWStream* content) { in StrokePath() argument
223 SkPaint::kStroke_Style, SkPath::kWinding_FillType, content); in StrokePath()
227 void SkPDFUtils::DrawFormXObject(int objectIndex, SkWStream* content) { in DrawFormXObject() argument
228 content->writeText("/"); in DrawFormXObject()
229 content->writeText(SkPDFResourceDict::getResourceName( in DrawFormXObject()
232 content->writeText(" Do\n"); in DrawFormXObject()
236 void SkPDFUtils::ApplyGraphicState(int objectIndex, SkWStream* content) { in ApplyGraphicState() argument
237 content->writeText("/"); in ApplyGraphicState()
238 content->writeText(SkPDFResourceDict::getResourceName( in ApplyGraphicState()
241 content->writeText(" gs\n"); in ApplyGraphicState()
245 void SkPDFUtils::ApplyPattern(int objectIndex, SkWStream* content) { in ApplyPattern() argument
251 content->writeText("/Pattern CS/Pattern cs/"); in ApplyPattern()
252 content->writeText(resourceName.c_str()); in ApplyPattern()
253 content->writeText(" SCN/"); in ApplyPattern()
254 content->writeText(resourceName.c_str()); in ApplyPattern()
255 content->writeText(" scn\n"); in ApplyPattern()