Lines Matching refs:str

28 static void toString(const SkRect& r, SkString* str) {
29 str->appendf("[%g,%g %g:%g]",
34 static void toString(const SkIRect& r, SkString* str) {
35 str->appendf("[%d,%d %d:%d]", r.fLeft, r.fTop, r.width(), r.height());
38 static void toString(const SkRRect& rrect, SkString* str) {
40 str->appendf("[%g,%g %g:%g]",
44 str->append("()");
47 str->appendf("(%g,%g)", rad.x(), rad.y());
55 str->appendf("(%g,%g %g,%g %g,%g %g,%g)",
63 static void dumpVerbs(const SkPath& path, SkString* str) {
69 str->appendf(" M%g,%g", pts[0].fX, pts[0].fY);
72 str->appendf(" L%g,%g", pts[0].fX, pts[0].fY);
75 str->appendf(" Q%g,%g,%g,%g", pts[1].fX, pts[1].fY,
79 str->appendf(" C%g,%g,%g,%g,%g,%g", pts[1].fX, pts[1].fY,
83 str->append("X");
91 static void toString(const SkPath& path, SkString* str) {
93 str->append("path:empty");
95 toString(path.getBounds(), str);
99 str->append(s.c_str());
101 str->append("]");
102 str->prepend("path:[");
113 static void toString(const SkRegion& rgn, SkString* str) {
114 str->append("Region:[");
115 toString(rgn.getBounds(), str);
116 str->append("]");
118 str->append(".complex");
137 SkString* str) {
141 str->appendf("\"%.*s\"%s", SkMax32(byteLen, 32), (const char*) text,
145 str->appendf("\"%.*ls\"%s", SkMax32(byteLen, 32), (const wchar_t*) text,
149 str->appendf("\"%.*ls\"%s", SkMax32(byteLen, 32), (const wchar_t*) text,
153 str->append("<glyphs>");
206 SkString str;
207 str.printf("saveLayer(0x%X)", flags);
209 str.append(" bounds");
210 toString(*bounds, &str);
214 str.appendf(" alpha:0x%02X", paint->getAlpha());
217 str.appendf(" xfermode:%p", paint->getXfermode());
220 this->dump(kSave_Verb, paint, str.c_str());
253 SkString str;
254 matrix.toString(&str);
255 this->dump(kMatrix_Verb, NULL, "concat(%s)", str.c_str());
260 SkString str;
261 matrix.toString(&str);
262 this->dump(kMatrix_Verb, NULL, "setMatrix(%s)", str.c_str());
273 SkString str;
274 toString(rect, &str);
275 this->dump(kClip_Verb, NULL, "clipRect(%s %s %s)", str.c_str(), toString(op),
281 SkString str;
282 toString(rrect, &str);
283 this->dump(kClip_Verb, NULL, "clipRRect(%s %s %s)", str.c_str(), toString(op),
289 SkString str;
290 toString(path, &str);
291 this->dump(kClip_Verb, NULL, "clipPath(%s %s %s)", str.c_str(), toString(op),
297 SkString str;
298 toString(deviceRgn, &str);
299 this->dump(kClip_Verb, NULL, "clipRegion(%s %s)", str.c_str(),
317 SkString str;
318 toString(rect, &str);
319 this->dump(kDrawOval_Verb, &paint, "drawOval(%s)", str.c_str());
323 SkString str;
324 toString(rect, &str);
325 this->dump(kDrawRect_Verb, &paint, "drawRect(%s)", str.c_str());
329 SkString str;
330 toString(rrect, &str);
331 this->dump(kDrawRRect_Verb, &paint, "drawRRect(%s)", str.c_str());
335 SkString str;
336 toString(path, &str);
337 this->dump(kDrawPath_Verb, &paint, "drawPath(%s)", str.c_str());
342 SkString str;
343 bitmap.toString(&str);
344 this->dump(kDrawBitmap_Verb, paint, "drawBitmap(%s %g %g)", str.c_str(),
377 SkString str;
378 bitmap.toString(&str);
379 this->dump(kDrawBitmap_Verb, paint, "drawSprite(%s %d %d)", str.c_str(),
385 SkString str;
386 toString(text, byteLength, paint.getTextEncoding(), &str);
387 this->dump(kDrawText_Verb, &paint, "drawText(%s [%d] %g %g)", str.c_str(),
393 SkString str;
394 toString(text, byteLength, paint.getTextEncoding(), &str);
396 str.c_str(), byteLength, SkScalarToFloat(pos[0].fX),
403 SkString str;
404 toString(text, byteLength, paint.getTextEncoding(), &str);
406 str.c_str(), byteLength, SkScalarToFloat(xpos[0]),
413 SkString str;
414 toString(text, byteLength, paint.getTextEncoding(), &str);
416 str.c_str(), byteLength);
453 static void appendPtr(SkString* str, const void* ptr, const char name[]) {
455 str->appendf(" %s:%p", name, ptr);
459 static void appendFlattenable(SkString* str, const SkFlattenable* ptr,
462 str->appendf(" %s:%p", name, ptr);
467 const char str[], const SkPaint* p) {
478 msg.printf("%s%s", tab.c_str(), str);