| Index: third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
|
| index 655442579b0afbc4d611446376ec62f42f9455c4..7a085d9c01ca834cd0978d65a6417832f05f26a7 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
|
| @@ -115,7 +115,8 @@ PassRefPtr<Image> createTransparentImage(const IntSize& size) {
|
| DCHECK(ImageBuffer::canCreateImageBuffer(size));
|
| sk_sp<SkSurface> surface =
|
| SkSurface::MakeRasterN32Premul(size.width(), size.height());
|
| - return StaticBitmapImage::create(surface->makeImageSnapshot());
|
| + return surface ? StaticBitmapImage::create(surface->makeImageSnapshot())
|
| + : nullptr;
|
| }
|
|
|
| } // namespace
|
|
|