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/SkBmpStandardCodec.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/SkBmpStandardCodec.cpp')
-rw-r--r-- | src/codec/SkBmpStandardCodec.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/codec/SkBmpStandardCodec.cpp b/src/codec/SkBmpStandardCodec.cpp index 938fe8c788..9557609360 100644 --- a/src/codec/SkBmpStandardCodec.cpp +++ b/src/codec/SkBmpStandardCodec.cpp @@ -161,8 +161,7 @@ SkCodec::Result SkBmpStandardCodec::onGetPixels(const SkImageInfo& dstInfo, return true; } -bool SkBmpStandardCodec::initializeSwizzler(const SkImageInfo& dstInfo, - const Options& opts) { +bool SkBmpStandardCodec::initializeSwizzler(const SkImageInfo& dstInfo, const Options& opts) { // Get swizzler configuration SkSwizzler::SrcConfig config; switch (this->bitsPerPixel()) { @@ -197,8 +196,7 @@ bool SkBmpStandardCodec::initializeSwizzler(const SkImageInfo& dstInfo, const SkPMColor* colorPtr = get_color_ptr(fColorTable.get()); // Create swizzler - fSwizzler.reset(SkSwizzler::CreateSwizzler(config, - colorPtr, dstInfo, opts.fZeroInitialized)); + fSwizzler.reset(SkSwizzler::CreateSwizzler(config, colorPtr, dstInfo, opts)); if (nullptr == fSwizzler.get()) { return false; |