| 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 3bebb361f49c1496e6fa794cf165950cf6d99f1d..d4eb061adb600eedb1b46629522b6de8c766c249 100644
|
| --- a/third_party/WebKit/Source/core/frame/ImageBitmap.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/ImageBitmap.cpp
|
| @@ -472,10 +472,12 @@ ImageBitmap::ImageBitmap(HTMLCanvasElement* canvas,
|
| const ImageBitmapOptions& options) {
|
| ASSERT(canvas->isPaintable());
|
| RefPtr<Image> input;
|
| - if (canvas->placeholderFrame())
|
| + if (canvas->placeholderFrame()) {
|
| input = canvas->placeholderFrame();
|
| - else
|
| - input = canvas->copiedImage(BackBuffer, PreferAcceleration);
|
| + } else {
|
| + input = canvas->copiedImage(BackBuffer, PreferAcceleration,
|
| + SnapshotReasonCreateImageBitmap);
|
| + }
|
| ParsedOptions parsedOptions =
|
| parseOptions(options, cropRect, IntSize(input->width(), input->height()));
|
| if (dstBufferSizeHasOverflow(parsedOptions))
|
|
|