diff options
Diffstat (limited to 'src/core/SkImageFilter.cpp')
-rw-r--r-- | src/core/SkImageFilter.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/core/SkImageFilter.cpp b/src/core/SkImageFilter.cpp index 37d1f44fd4..2d81026a56 100644 --- a/src/core/SkImageFilter.cpp +++ b/src/core/SkImageFilter.cpp @@ -69,6 +69,20 @@ void SkImageFilter::flatten(SkFlattenableWriteBuffer& buffer) const { } } +SkBitmap SkImageFilter::getInputResult(int index, Proxy* proxy, + const SkBitmap& src, const SkMatrix& ctm, + SkIPoint* loc) { + SkASSERT(index < fInputCount); + SkImageFilter* input = getInput(index); + SkBitmap result; + if (input && input->filterImage(proxy, src, ctm, &result, loc)) { + return result; + } else { + return src; + } +} + + bool SkImageFilter::filterImage(Proxy* proxy, const SkBitmap& src, const SkMatrix& ctm, SkBitmap* result, SkIPoint* loc) { |