Index: ui/base/resource/resource_bundle.cc |
diff --git a/ui/base/resource/resource_bundle.cc b/ui/base/resource/resource_bundle.cc |
index f5a592d022124b541899548087c1f2d2b5facbad..1afd46a05cad24c07caa5fc0ea8b6f1540bb1a40 100644 |
--- a/ui/base/resource/resource_bundle.cc |
+++ b/ui/base/resource/resource_bundle.cc |
@@ -774,8 +774,7 @@ gfx::Image& ResourceBundle::GetEmptyImage() { |
if (empty_image_.IsEmpty()) { |
// The placeholder bitmap is bright red so people notice the problem. |
SkBitmap bitmap; |
- bitmap.setConfig(SkBitmap::kARGB_8888_Config, 32, 32); |
- bitmap.allocPixels(); |
+ bitmap.allocN32Pixels(32, 32); |
bitmap.eraseARGB(255, 255, 0, 0); |
empty_image_ = gfx::Image::CreateFrom1xBitmap(bitmap); |
} |