| Index: Source/platform/graphics/ImageBuffer.cpp
|
| diff --git a/Source/platform/graphics/ImageBuffer.cpp b/Source/platform/graphics/ImageBuffer.cpp
|
| index 45b0e19af270b8c6827e738a1a733967283f6aac..6d997d37b09ffc368e0cffcc4e47efa54a01b52b 100644
|
| --- a/Source/platform/graphics/ImageBuffer.cpp
|
| +++ b/Source/platform/graphics/ImageBuffer.cpp
|
| @@ -350,7 +350,7 @@ PassRefPtr<Uint8ClampedArray> ImageBuffer::getImageData(Multiply multiplied, con
|
| SkAlphaType alphaType = (multiplied == Premultiplied) ? kPremul_SkAlphaType : kUnpremul_SkAlphaType;
|
| SkImageInfo info = SkImageInfo::Make(rect.width(), rect.height(), kRGBA_8888_SkColorType, alphaType);
|
|
|
| - m_surface->willReadback();
|
| + m_surface->willAccessPixels();
|
| context()->readPixels(info, result->data(), 4 * rect.width(), rect.x(), rect.y());
|
| return result.release();
|
| }
|
| @@ -382,6 +382,8 @@ void ImageBuffer::putByteArray(Multiply multiplied, Uint8ClampedArray* source, c
|
| SkAlphaType alphaType = (multiplied == Premultiplied) ? kPremul_SkAlphaType : kUnpremul_SkAlphaType;
|
| SkImageInfo info = SkImageInfo::Make(sourceRect.width(), sourceRect.height(), kRGBA_8888_SkColorType, alphaType);
|
|
|
| + m_surface->willAccessPixels();
|
| +
|
| context()->writePixels(info, srcAddr, srcBytesPerRow, destX, destY);
|
| }
|
|
|
|
|