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; |
+ 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, |