Chromium Code Reviews| 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 62388bc0fb578bd02059e4556ea598892a587f45..100ce271b6adbedbd69b6ce1f4701d9ab15ca908 100644 |
| --- a/third_party/WebKit/Source/core/frame/ImageBitmap.cpp |
| +++ b/third_party/WebKit/Source/core/frame/ImageBitmap.cpp |
| @@ -98,7 +98,9 @@ ImageBitmap::ImageBitmap(ImageData* data, const IntRect& cropRect) |
| , m_bitmapOffset(IntPoint()) |
| { |
| IntRect srcRect = intersection(cropRect, IntRect(IntPoint(), data->size())); |
| - OwnPtr<ImageBuffer> buffer = ImageBuffer::create(data->size()); |
| + OpacityMode opacityMode = Opaque; |
| + ImageBitmapSourceType sourceType = FromImageData; |
|
Justin Novosad
2015/10/14 14:25:28
No need to use temporaries like this when you alre
|
| + OwnPtr<ImageBuffer> buffer = ImageBuffer::create(data->size(), opacityMode, sourceType); |
| if (!buffer) |
| return; |