Index: src/effects/SkMergeImageFilter.cpp |
diff --git a/src/effects/SkMergeImageFilter.cpp b/src/effects/SkMergeImageFilter.cpp |
index d932d3ccce50a05ffd5689cece10a926d3a16ada..7034e158e5ef48e95d49007c180f09bee1443a05 100755 |
--- a/src/effects/SkMergeImageFilter.cpp |
+++ b/src/effects/SkMergeImageFilter.cpp |
@@ -140,3 +140,18 @@ void SkMergeImageFilter::flatten(SkWriteBuffer& buffer) const { |
buffer.writeByteArray(fModes, countInputs() * sizeof(fModes[0])); |
} |
} |
+ |
+#ifndef SK_IGNORE_TO_STRING |
+void SkMergeImageFilter::toString(SkString* str) const { |
+ str->appendf("SkMergeImageFilter: ("); |
+ |
+ for (int i = 0; i < this->countInputs(); ++i) { |
+ SkImageFilter* filter = this->getInput(i); |
+ str->appendf("%d: (", i); |
+ filter->toString(str); |
+ str->appendf(")"); |
+ } |
+ |
+ str->append(")"); |
+} |
+#endif |