| Index: third_party/WebKit/Source/core/frame/ImageBitmap.cpp
|
| diff --git a/third_party/WebKit/Source/core/frame/ImageBitmap.cpp b/third_party/WebKit/Source/core/frame/ImageBitmap.cpp
|
| index 25580c042d55adc9947c3ec02bbd6ce6dcb5d34a..4626173f32a37267f0d6ece48e860e49ec9001d2 100644
|
| --- a/third_party/WebKit/Source/core/frame/ImageBitmap.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/ImageBitmap.cpp
|
| @@ -171,7 +171,7 @@ PassOwnPtr<uint8_t[]> ImageBitmap::copyBitmapData()
|
| {
|
| SkImageInfo info = SkImageInfo::Make(width(), height(), kRGBA_8888_SkColorType, kUnpremul_SkAlphaType);
|
| OwnPtr<uint8_t[]> dstPixels = adoptArrayPtr(new uint8_t[width() * height() * info.bytesPerPixel()]);
|
| - size_t dstRowBytes = 4 * width();
|
| + size_t dstRowBytes = info.bytesPerPixel() * width();
|
| m_image->imageForCurrentFrame()->readPixels(info, dstPixels.get(), dstRowBytes, 0, 0);
|
| return dstPixels.release();
|
| }
|
|
|