diff options
author | robertphillips <robertphillips@google.com> | 2014-12-19 13:49:15 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-12-19 13:49:15 -0800 |
commit | f3f5bad7ded35265c0b5d042cc4174386b197a33 (patch) | |
tree | b8197317dd26d7e5b65f1559446c8d39e8be1457 /tests/PDFPrimitivesTest.cpp | |
parent | 290c09b8bbd8d221d363150e2ce87158f4668df0 (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/PDFPrimitivesTest.cpp')
-rw-r--r-- | tests/PDFPrimitivesTest.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/PDFPrimitivesTest.cpp b/tests/PDFPrimitivesTest.cpp index ca18b2aebf..3f539e3843 100644 --- a/tests/PDFPrimitivesTest.cpp +++ b/tests/PDFPrimitivesTest.cpp @@ -443,6 +443,7 @@ public: *result = src; return true; } + SK_TO_STRING_OVERRIDE() SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(DummyImageFilter) bool visited() const { return fVisited; } @@ -456,6 +457,13 @@ SkFlattenable* DummyImageFilter::CreateProc(SkReadBuffer& buffer) { return SkNEW_ARGS(DummyImageFilter, (visited)); } +#ifndef SK_IGNORE_TO_STRING +void DummyImageFilter::toString(SkString* str) const { + str->appendf("DummyImageFilter: ("); + str->append(")"); +} +#endif + }; // Check that PDF rendering of image filters successfully falls back to |