diff options
Diffstat (limited to 'src/codec/SkGifCodec.cpp')
-rw-r--r-- | src/codec/SkGifCodec.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codec/SkGifCodec.cpp b/src/codec/SkGifCodec.cpp index dff8136d75..1118ed0e7d 100644 --- a/src/codec/SkGifCodec.cpp +++ b/src/codec/SkGifCodec.cpp @@ -541,7 +541,7 @@ void SkGifCodec::haveDecodedRow(int frameIndex, const unsigned char* rowBegin, // Tell the frame to copy the row data if need be. if (repeatCount > 1) { - const size_t bytesPerPixel = SkColorTypeBytesPerPixel(this->dstInfo().colorType()); + const size_t bytesPerPixel = this->dstInfo().bytesPerPixel(); const size_t bytesToCopy = fSwizzler->swizzleWidth() * bytesPerPixel; void* copiedLine = SkTAddOffset<void>(dstLine, fSwizzler->swizzleOffsetBytes()); void* dst = copiedLine; |