diff options
Diffstat (limited to 'athena/test/test_app_model_builder.cc')
-rw-r--r-- | athena/test/test_app_model_builder.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/athena/test/test_app_model_builder.cc b/athena/test/test_app_model_builder.cc index f7db8a0..c4b5387 100644 --- a/athena/test/test_app_model_builder.cc +++ b/athena/test/test_app_model_builder.cc @@ -78,8 +78,7 @@ class DummyItem : public app_list::AppListItem { break; } SkBitmap bitmap; - bitmap.setConfig(SkBitmap::kARGB_8888_Config, kIconSize, kIconSize); - bitmap.allocPixels(); + bitmap.allocN32Pixels(kIconSize, kIconSize); bitmap.eraseColor(color); return gfx::ImageSkia::CreateFrom1xBitmap(bitmap); } |