Chromium Code Reviews| Index: src/utils/SkDumpCanvas.cpp |
| diff --git a/src/utils/SkDumpCanvas.cpp b/src/utils/SkDumpCanvas.cpp |
| index 661f0d8860fc40c8a37c3e1ff84e30e6bf4f5383..5e3d1535d95190aa021d30a9cb981b92d97baa4b 100644 |
| --- a/src/utils/SkDumpCanvas.cpp |
| +++ b/src/utils/SkDumpCanvas.cpp |
| @@ -14,6 +14,7 @@ |
| #include "SkPixelRef.h" |
| #include "SkRRect.h" |
| #include "SkString.h" |
| +#include "SkTextBlob.h" |
| #include <stdarg.h> |
| #include <stdio.h> |
| @@ -423,6 +424,14 @@ void SkDumpCanvas::onDrawTextOnPath(const void* text, size_t byteLength, const S |
| str.c_str(), byteLength); |
| } |
| +void SkDumpCanvas::onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, |
| + const SkPaint& paint) { |
| + SkString str; |
|
robertphillips
2014/08/25 21:32:05
this-> ?
f(malita)
2014/08/25 23:56:03
can't do: toString is a standalone static function
|
| + toString(blob->bounds(), &str); |
| + this->dump(kDrawText_Verb, &paint, "drawTextBlob(%p) [%s]", blob, str.c_str()); |
| + // FIXME: dump the actual blob content? |
| +} |
| + |
| void SkDumpCanvas::onDrawPicture(const SkPicture* picture, const SkMatrix* matrix, |
| const SkPaint* paint) { |
| this->dump(kDrawPicture_Verb, NULL, "drawPicture(%p) %d:%d", picture, |