aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/ImageFilterTest.cpp
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2014-12-19 13:49:15 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-12-19 13:49:15 -0800
commitf3f5bad7ded35265c0b5d042cc4174386b197a33 (patch)
treeb8197317dd26d7e5b65f1559446c8d39e8be1457 /tests/ImageFilterTest.cpp
parent290c09b8bbd8d221d363150e2ce87158f4668df0 (diff)
Add toString methods to SkImageFilter-derived classes
This isn't definitive but at least makes something show up in the debugger. Review URL: https://codereview.chromium.org/789163006
Diffstat (limited to 'tests/ImageFilterTest.cpp')
-rw-r--r--tests/ImageFilterTest.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ImageFilterTest.cpp b/tests/ImageFilterTest.cpp
index 9fd4351b42..b67383682b 100644
--- a/tests/ImageFilterTest.cpp
+++ b/tests/ImageFilterTest.cpp
@@ -55,6 +55,7 @@ public:
return true;
}
+ SK_TO_STRING_OVERRIDE()
SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(MatrixTestImageFilter)
protected:
@@ -81,6 +82,13 @@ SkFlattenable* MatrixTestImageFilter::CreateProc(SkReadBuffer& buffer) {
return SkNEW_ARGS(MatrixTestImageFilter, (reporter, matrix));
}
+#ifndef SK_IGNORE_TO_STRING
+void MatrixTestImageFilter::toString(SkString* str) const {
+ str->appendf("MatrixTestImageFilter: (");
+ str->append(")");
+}
+#endif
+
static void make_small_bitmap(SkBitmap& bitmap) {
bitmap.allocN32Pixels(kBitmapSize, kBitmapSize);
SkCanvas canvas(bitmap);