diff options
author | nagarajan.n <nagarajan.n@samsung.com> | 2017-09-19 17:46:52 +0530 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-09-19 20:29:49 +0000 |
commit | f398dd514e3a94e860c6e6409007dc4b93003806 (patch) | |
tree | 2f7a1ad91a840aeea9fdb73a79b537927e459425 /src | |
parent | 07cb2a2f87f5af38298ac737ace52cd2f0557724 (diff) |
Move adding offset to dstRow in SkRawCodec::onGetPixels
This patch moves adding offset to dstRow in SkRawCodec::onGetPixels.
Bug: skia:None
Change-Id: Icd6a299b73e394eb67e30ad29829d9e2aa8a3646
Reviewed-on: https://skia-review.googlesource.com/48400
Reviewed-by: Leon Scroggins <scroggo@google.com>
Commit-Queue: Leon Scroggins <scroggo@google.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/codec/SkRawCodec.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/codec/SkRawCodec.cpp b/src/codec/SkRawCodec.cpp index 91abe75a6e..dfbd7e996a 100644 --- a/src/codec/SkRawCodec.cpp +++ b/src/codec/SkRawCodec.cpp @@ -743,18 +743,17 @@ SkCodec::Result SkRawCodec::onGetPixels(const SkImageInfo& dstInfo, void* dst, image->Get(buffer, dng_image::edge_zero); } catch (...) { *rowsDecoded = i; - return kIncompleteInput; + return kIncompleteInput; } if (this->colorXform()) { swizzler->swizzle(xformBuffer.get(), &srcRow[0]); this->applyColorXform(dstRow, xformBuffer.get(), dstInfo.width(), kOpaque_SkAlphaType); - dstRow = SkTAddOffset<void>(dstRow, dstRowBytes); } else { swizzler->swizzle(dstRow, &srcRow[0]); - dstRow = SkTAddOffset<void>(dstRow, dstRowBytes); } + dstRow = SkTAddOffset<void>(dstRow, dstRowBytes); } return kSuccess; } |