diff options
author | msarett <msarett@google.com> | 2015-10-13 12:50:14 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-10-13 12:50:14 -0700 |
commit | fdb47571a3b5e72469b67de44e32ac14d9352ab4 (patch) | |
tree | cc98e7952e756c3c8825e7f9af3b280b3fc7b449 /src/codec/SkBmpRLECodec.cpp | |
parent | eb85b8321bc917169ba26c8fce76b64d2e3dfe81 (diff) |
Add subsetting to SkScanlineDecoder
This CL allows the SkScanlineDecoder to decode partial
scanlines.
This is a first step in efficiently implementing subsetting
in SkScaledCodec.
BUG=skia:4209
Review URL: https://codereview.chromium.org/1390213002
Diffstat (limited to 'src/codec/SkBmpRLECodec.cpp')
-rw-r--r-- | src/codec/SkBmpRLECodec.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/codec/SkBmpRLECodec.cpp b/src/codec/SkBmpRLECodec.cpp index 37af47600b..e215095266 100644 --- a/src/codec/SkBmpRLECodec.cpp +++ b/src/codec/SkBmpRLECodec.cpp @@ -259,6 +259,12 @@ void SkBmpRLECodec::setRGBPixel(void* dst, size_t dstRowBytes, SkCodec::Result SkBmpRLECodec::prepareToDecode(const SkImageInfo& dstInfo, const SkCodec::Options& options, SkPMColor inputColorPtr[], int* inputColorCount) { + // FIXME: Support subsets for scanline decodes. + if (options.fSubset) { + // Subsets are not supported. + return kUnimplemented; + } + // Reset fSampleX. If it needs to be a value other than 1, it will get modified by // the sampler. fSampleX = 1; |