diff options
Diffstat (limited to 'src/effects/SkImageSource.cpp')
-rw-r--r-- | src/effects/SkImageSource.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/effects/SkImageSource.cpp b/src/effects/SkImageSource.cpp index 960de37b33..0f48fb0c97 100644 --- a/src/effects/SkImageSource.cpp +++ b/src/effects/SkImageSource.cpp @@ -157,3 +157,12 @@ SkIRect SkImageSource::onFilterNodeBounds(const SkIRect& src, const SkMatrix& ct return dstRect.roundOut(); } +void SkImageSource::toString(SkString* str) const { + str->appendf("SkImageSource: ("); + str->appendf("src: (%f,%f,%f,%f) dst: (%f,%f,%f,%f) ", + fSrcRect.fLeft, fSrcRect.fTop, fSrcRect.fRight, fSrcRect.fBottom, + fDstRect.fLeft, fDstRect.fTop, fDstRect.fRight, fDstRect.fBottom); + str->appendf("image: (%d,%d)", + fImage->width(), fImage->height()); + str->append(")"); +} |