diff options
Diffstat (limited to 'src/effects/SkMergeImageFilter.cpp')
-rw-r--r-- | src/effects/SkMergeImageFilter.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/effects/SkMergeImageFilter.cpp b/src/effects/SkMergeImageFilter.cpp index 633ddd4ae1..41d545e187 100644 --- a/src/effects/SkMergeImageFilter.cpp +++ b/src/effects/SkMergeImageFilter.cpp @@ -121,3 +121,15 @@ void SkMergeImageFilter::flatten(SkWriteBuffer& buffer) const { this->INHERITED::flatten(buffer); } +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(")"); +} |