aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/codec
diff options
context:
space:
mode:
authorGravatar scroggo <scroggo@google.com>2016-01-30 10:06:11 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-01-30 10:06:11 -0800
commite645965a7c8bc1f439fa4d7655e8c9fda0b969ca (patch)
treeea51b8c7633c326c4a73374f5df4daca4f535527 /src/codec
parent8e74f80ca1bd32581a583e2325daf4b46d892ee5 (diff)
Use proper row step in SkRawCodec
Diffstat (limited to 'src/codec')
-rw-r--r--src/codec/SkRawCodec.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codec/SkRawCodec.cpp b/src/codec/SkRawCodec.cpp
index f400b19d89..da3c28c549 100644
--- a/src/codec/SkRawCodec.cpp
+++ b/src/codec/SkRawCodec.cpp
@@ -508,7 +508,7 @@ SkCodec::Result SkRawCodec::onGetPixels(const SkImageInfo& requestedInfo, void*
buffer.fPlaneStep = 1;
buffer.fPixelType = ttByte;
buffer.fPixelSize = sizeof(uint8_t);
- buffer.fRowStep = sizeof(srcRow);
+ buffer.fRowStep = width * 3;
for (int i = 0; i < height; ++i) {
buffer.fArea = dng_rect(i, 0, i + 1, width);