diff options
author | msarett <msarett@google.com> | 2015-10-05 14:20:27 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-10-05 14:20:27 -0700 |
commit | cc7f305c696144455ece3e55082d28f0316bbdc1 (patch) | |
tree | cf9a24c99c92241b1eaa1d53b18890f38a4a6b24 /src/codec | |
parent | cb54e8ed4567adabd2ca8b49f7493effd2614158 (diff) |
SkScaledCodec should implement onRewind()
This is a bug fix. I'm also adding a test.
BUG=skia:
Review URL: https://codereview.chromium.org/1385703002
Diffstat (limited to 'src/codec')
-rw-r--r-- | src/codec/SkScaledCodec.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/codec/SkScaledCodec.cpp b/src/codec/SkScaledCodec.cpp index 078a0261a0..65fd93c8c0 100644 --- a/src/codec/SkScaledCodec.cpp +++ b/src/codec/SkScaledCodec.cpp @@ -44,6 +44,10 @@ SkScaledCodec::SkScaledCodec(SkCodec* codec) SkScaledCodec::~SkScaledCodec() {} +bool SkScaledCodec::onRewind() { + return fCodec->onRewind(); +} + static SkISize best_scaled_dimensions(const SkISize& origDims, const SkISize& nativeDims, const SkISize& scaledCodecDims, float desiredScale) { if (nativeDims == scaledCodecDims) { |