| Index: ui/gfx/codec/png_codec.cc
|
| diff --git a/ui/gfx/codec/png_codec.cc b/ui/gfx/codec/png_codec.cc
|
| index d098eb4ee188a55e33a5760485a2e4a22cd70d0b..1bf2aad717e4229300745dab62e9f0d435415d52 100644
|
| --- a/ui/gfx/codec/png_codec.cc
|
| +++ b/ui/gfx/codec/png_codec.cc
|
| @@ -276,9 +276,7 @@ void DecodeInfoCallback(png_struct* png_ptr, png_info* info_ptr) {
|
| png_read_update_info(png_ptr, info_ptr);
|
|
|
| if (state->bitmap) {
|
| - state->bitmap->setConfig(SkBitmap::kARGB_8888_Config,
|
| - state->width, state->height);
|
| - state->bitmap->allocPixels();
|
| + state->bitmap->allocN32Pixels(state->width, state->height);
|
| } else if (state->output) {
|
| state->output->resize(
|
| state->width * state->output_channels * state->height);
|
|
|