| Index: content/browser/android/system_ui_resource_manager_impl.cc
|
| diff --git a/content/browser/android/system_ui_resource_manager_impl.cc b/content/browser/android/system_ui_resource_manager_impl.cc
|
| index dfbbc5aeb6d81958e8838162d8fa77d036559b93..81f12fc3a70d5d0abde50158258001d4343c7564 100644
|
| --- a/content/browser/android/system_ui_resource_manager_impl.cc
|
| +++ b/content/browser/android/system_ui_resource_manager_impl.cc
|
| @@ -40,7 +40,11 @@
|
| SkRect arc_rect = SkRect::MakeXYWH(
|
| -arc_width / 2.f, -arc_width - y, arc_width * 2.f, arc_width * 2.f);
|
| SkBitmap glow_bitmap;
|
| - glow_bitmap.allocPixels(SkImageInfo::MakeA8(bounds.width(), bounds.height()));
|
| + if (!glow_bitmap.allocPixels(
|
| + SkImageInfo::MakeA8(bounds.width(), bounds.height()))) {
|
| + LOG(FATAL) << " Failed to allocate bitmap of size " << bounds.width() << "x"
|
| + << bounds.height();
|
| + }
|
| glow_bitmap.eraseColor(SK_ColorTRANSPARENT);
|
|
|
| SkCanvas canvas(glow_bitmap);
|
|
|