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>
This commit is contained in:
parent
07cb2a2f87
commit
f398dd514e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user