Lines Matching full:content

45 void SkPDFUtils::AppendTransform(const SkMatrix& matrix, SkWStream* content) {  in AppendTransform()  argument
51 SkPDFUtils::AppendScalar(values[i], content); in AppendTransform()
52 content->writeText(" "); in AppendTransform()
54 content->writeText("cm\n"); in AppendTransform()
58 void SkPDFUtils::MoveTo(SkScalar x, SkScalar y, SkWStream* content) { in MoveTo() argument
59 SkPDFUtils::AppendScalar(x, content); in MoveTo()
60 content->writeText(" "); in MoveTo()
61 SkPDFUtils::AppendScalar(y, content); in MoveTo()
62 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()
76 SkScalar dstX, SkScalar dstY, SkWStream* content) { in AppendCubic() argument
78 SkPDFUtils::AppendScalar(ctl1X, content); in AppendCubic()
79 content->writeText(" "); in AppendCubic()
80 SkPDFUtils::AppendScalar(ctl1Y, content); in AppendCubic()
81 content->writeText(" "); in AppendCubic()
84 SkPDFUtils::AppendScalar(ctl2X, content); in AppendCubic()
85 content->writeText(" "); in AppendCubic()
86 SkPDFUtils::AppendScalar(ctl2Y, content); in AppendCubic()
87 content->writeText(" "); in AppendCubic()
89 SkPDFUtils::AppendScalar(dstX, content); in AppendCubic()
90 content->writeText(" "); in AppendCubic()
91 SkPDFUtils::AppendScalar(dstY, content); in AppendCubic()
92 content->writeText(" "); in AppendCubic()
93 content->writeText(cmd.c_str()); in AppendCubic()
96 static void append_quad(const SkPoint quad[], SkWStream* content) { in append_quad() argument
100 cubic[3].fX, cubic[3].fY, content); in append_quad()
104 void SkPDFUtils::AppendRectangle(const SkRect& rect, SkWStream* content) { in AppendRectangle() argument
108 SkPDFUtils::AppendScalar(rect.fLeft, content); in AppendRectangle()
109 content->writeText(" "); in AppendRectangle()
110 SkPDFUtils::AppendScalar(bottom, content); in AppendRectangle()
111 content->writeText(" "); in AppendRectangle()
112 SkPDFUtils::AppendScalar(rect.width(), content); in AppendRectangle()
113 content->writeText(" "); in AppendRectangle()
114 SkPDFUtils::AppendScalar(rect.height(), content); in AppendRectangle()
115 content->writeText(" re\n"); in AppendRectangle()
120 bool doConsumeDegerates, SkWStream* content, in EmitPath() argument
133 SkPDFUtils::AppendRectangle(rect, content); in EmitPath()
187 currentSegment.writeToStream(content); in EmitPath()
196 currentSegment.writeToStream(content); in EmitPath()
201 void SkPDFUtils::ClosePath(SkWStream* content) { in ClosePath() argument
202 content->writeText("h\n"); in ClosePath()
207 SkWStream* content) { in PaintPath() argument
209 content->writeText("f"); in PaintPath()
211 content->writeText("B"); in PaintPath()
213 content->writeText("S"); in PaintPath()
220 content->writeText("*"); in PaintPath()
223 content->writeText("\n"); in PaintPath()
227 void SkPDFUtils::StrokePath(SkWStream* content) { in StrokePath() argument
229 SkPaint::kStroke_Style, SkPath::kWinding_FillType, content); in StrokePath()
233 void SkPDFUtils::DrawFormXObject(int objectIndex, SkWStream* content) { in DrawFormXObject() argument
234 content->writeText("/"); in DrawFormXObject()
235 content->writeText(SkPDFResourceDict::getResourceName( in DrawFormXObject()
238 content->writeText(" Do\n"); in DrawFormXObject()
242 void SkPDFUtils::ApplyGraphicState(int objectIndex, SkWStream* content) { in ApplyGraphicState() argument
243 content->writeText("/"); in ApplyGraphicState()
244 content->writeText(SkPDFResourceDict::getResourceName( in ApplyGraphicState()
247 content->writeText(" gs\n"); in ApplyGraphicState()
251 void SkPDFUtils::ApplyPattern(int objectIndex, SkWStream* content) { in ApplyPattern() argument
257 content->writeText("/Pattern CS/Pattern cs/"); in ApplyPattern()
258 content->writeText(resourceName.c_str()); in ApplyPattern()
259 content->writeText(" SCN/"); in ApplyPattern()
260 content->writeText(resourceName.c_str()); in ApplyPattern()
261 content->writeText(" scn\n"); in ApplyPattern()