Index: src/utils/SkDumpCanvas.cpp |
diff --git a/src/utils/SkDumpCanvas.cpp b/src/utils/SkDumpCanvas.cpp |
index 916c32a6557b1caac69fc17b008d1c836fc253c2..75fa836a6a10a0d681cc478d1fa920ee94b3a4ba 100644 |
--- a/src/utils/SkDumpCanvas.cpp |
+++ b/src/utils/SkDumpCanvas.cpp |
@@ -9,6 +9,7 @@ |
#include "SkDumpCanvas.h" |
#ifdef SK_DEVELOPER |
+#include "SkData.h" |
#include "SkPatchUtils.h" |
#include "SkPicture.h" |
#include "SkPixelRef.h" |
@@ -482,6 +483,13 @@ void SkDumpCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4] |
texCoords[2].x(), texCoords[2].y(), texCoords[3].x(), texCoords[3].y()); |
} |
+void SkDumpCanvas::onDrawAnnotation(const SkRect& rect, const char key[], SkData* value) { |
+ SkString str; |
+ toString(rect, &str); |
+ this->dump(kDrawAnnotation_Verb, nullptr, "drawAnnotation(%s \"%s\" (%zu))", |
+ str.c_str(), key, value ? value->size() : 0); |
+} |
+ |
/////////////////////////////////////////////////////////////////////////////// |
/////////////////////////////////////////////////////////////////////////////// |