| 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 b0f92dbd71f8906be13a81d75d3a2bb25e3b4cf7..fe9be298adabee153e3c380ff4ec19fb40d1f11c 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
|
| @@ -112,7 +112,8 @@ const int MaxGlobalGPUMemoryUsage =
|
| const int UndefinedQualityValue = -1.0;
|
|
|
| sk_sp<SkImage> createTransparentSkImage(const IntSize& size) {
|
| - DCHECK(ImageBuffer::canCreateImageBuffer(size));
|
| + if (!ImageBuffer::canCreateImageBuffer(size))
|
| + return nullptr;
|
| sk_sp<SkSurface> surface =
|
| SkSurface::MakeRasterN32Premul(size.width(), size.height());
|
| return surface ? surface->makeImageSnapshot() : nullptr;
|
|
|