Lines Matching refs:str
15 static void toString(const SkRect& r, SkString* str) {
16 str->printf("[%g,%g %g:%g]",
21 static void toString(const SkIRect& r, SkString* str) {
22 str->printf("[%d,%d %d:%d]", r.fLeft, r.fTop, r.width(), r.height());
25 static void dumpVerbs(const SkPath& path, SkString* str) {
31 str->appendf(" M%g,%g", pts[0].fX, pts[0].fY);
34 str->appendf(" L%g,%g", pts[0].fX, pts[0].fY);
37 str->appendf(" Q%g,%g,%g,%g", pts[1].fX, pts[1].fY,
41 str->appendf(" C%g,%g,%g,%g,%g,%g", pts[1].fX, pts[1].fY,
45 str->appendf("X");
53 static void toString(const SkPath& path, SkString* str) {
55 str->set("path:empty");
57 toString(path.getBounds(), str);
61 str->append(s.c_str());
63 str->append("]");
64 str->prepend("path:[");
75 static void toString(const SkRegion& rgn, SkString* str) {
76 toString(rgn.getBounds(), str);
77 str->prepend("Region:[");
78 str->append("]");
80 str->append(".complex");
105 static void toString(const SkBitmap& bm, SkString* str) {
106 str->printf("bitmap:[%d %d] %s", bm.width(), bm.height(),
112 str->appendf(" pixels:%p", bm.getPixels());
116 str->appendf(" uri:\"%s\"", uri);
118 str->appendf(" pixelref:%p", pr);
124 SkString* str, const SkPaint& paint,
128 str->printf("\"%.*s\"%s", SkMax32(len, 32), text,
132 str->printf("\"%.*S\"%s", SkMax32(len, 32), text,
141 str->append("\"");
143 str->appendUnichar(uni[i]);
146 str->append("...");
148 str->append("\"");
227 SkString str;
228 matrix.toDumpString(&str);
229 this->dump(kMatrix_Verb, NULL, "concat(%s)", str.c_str());
234 SkString str;
235 matrix.toDumpString(&str);
236 this->dump(kMatrix_Verb, NULL, "setMatrix(%s)", str.c_str());
243 SkString str;
244 toString(rect, &str);
245 this->dump(kClip_Verb, NULL, "clipRect(%s %s)", str.c_str(), toString(op));
250 SkString str;
251 toString(path, &str);
252 this->dump(kClip_Verb, NULL, "clipPath(%s %s)", str.c_str(), toString(op));
257 SkString str;
258 toString(deviceRgn, &str);
259 this->dump(kClip_Verb, NULL, "clipRegion(%s %s)", str.c_str(),
277 SkString str;
278 toString(rect, &str);
279 this->dump(kDrawRect_Verb, &paint, "drawRect(%s)", str.c_str());
283 SkString str;
284 toString(path, &str);
285 this->dump(kDrawPath_Verb, &paint, "drawPath(%s)", str.c_str());
290 SkString str;
291 toString(bitmap, &str);
292 this->dump(kDrawBitmap_Verb, paint, "drawBitmap(%s %g %g)", str.c_str(),
325 SkString str;
326 toString(bitmap, &str);
327 this->dump(kDrawBitmap_Verb, paint, "drawSprite(%s %d %d)", str.c_str(),
333 SkString str;
334 toString(text, byteLength, paint.getTextEncoding(), &str, paint);
335 this->dump(kDrawText_Verb, &paint, "drawText(%s [%d] %g %g)", str.c_str(),
341 SkString str;
342 toString(text, byteLength, paint.getTextEncoding(), &str, paint);
344 str.c_str(), byteLength, SkScalarToFloat(pos[0].fX),
351 SkString str;
352 toString(text, byteLength, paint.getTextEncoding(), &str, paint, xpos);
354 str.c_str(), byteLength, SkScalarToFloat(xpos[0]),
361 SkString str;
362 toString(text, byteLength, paint.getTextEncoding(), &str, paint);
364 str.c_str(), byteLength);
409 static void appendPtr(SkString* str, const void* ptr, const char name[]) {
411 str->appendf(" %s:%p", name, ptr);
415 static void appendFlattenable(SkString* str, const SkFlattenable* ptr,
420 str->appendf(" %s", info.c_str());
422 str->appendf(" %s:%p", name, ptr);
428 const char str[], const SkPaint* p) {
435 msg.printf("%s%s", tab.c_str(), str);