Index: src/utils/SkDumpCanvas.cpp |
diff --git a/src/utils/SkDumpCanvas.cpp b/src/utils/SkDumpCanvas.cpp |
index a5005610ae0fecf402084b2d14056dd339f87b20..8d0209d96422249bac2a51faa82fd4b391368b3e 100644 |
--- a/src/utils/SkDumpCanvas.cpp |
+++ b/src/utils/SkDumpCanvas.cpp |
@@ -397,6 +397,13 @@ |
bs.c_str(), rs.c_str()); |
} |
+void SkDumpCanvas::onDrawSprite(const SkBitmap& bitmap, int x, int y, const SkPaint* paint) { |
+ SkString str; |
+ bitmap.toString(&str); |
+ this->dump(kDrawBitmap_Verb, paint, "drawSprite(%s %d %d)", str.c_str(), |
+ x, y); |
+} |
+ |
void SkDumpCanvas::onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y, |
const SkPaint& paint) { |
SkString str; |