diff options
author | scroggo <scroggo@google.com> | 2016-01-30 10:06:11 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-30 10:06:11 -0800 |
commit | e645965a7c8bc1f439fa4d7655e8c9fda0b969ca (patch) | |
tree | ea51b8c7633c326c4a73374f5df4daca4f535527 /src/codec | |
parent | 8e74f80ca1bd32581a583e2325daf4b46d892ee5 (diff) |
Use proper row step in SkRawCodec
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1643373002
Review URL: https://codereview.chromium.org/1643373002
Diffstat (limited to 'src/codec')
-rw-r--r-- | src/codec/SkRawCodec.cpp | 2 |
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); |