Chromium Code Reviews| Index: ui/message_center/views/notification_view.cc |
| diff --git a/ui/message_center/views/notification_view.cc b/ui/message_center/views/notification_view.cc |
| index 82223390b36a3a856604fe067c81209c0cdef300..6dc3beefc18304b9afc0669c92e1832addf3821c 100644 |
| --- a/ui/message_center/views/notification_view.cc |
| +++ b/ui/message_center/views/notification_view.cc |
| @@ -112,7 +112,6 @@ bool HasAlpha(gfx::ImageSkia& image, views::Widget* widget) { |
| image.GetRepresentation(ui::GetImageScale(factor)).sk_bitmap(); |
| if (!bitmap.isNull()) { |
| SkBitmap alpha; |
| - alpha.setConfig(SkBitmap::kA1_Config, bitmap.width(), bitmap.height(), 0); |
|
danakj
2013/11/20 00:17:13
This seems odd, what is setting the config/width/h
reed1
2013/11/20 16:07:31
extractBitmap takes care of sizing and allocating
|
| bitmap.extractAlpha(&alpha); |
| for (int y = 0; y < bitmap.height(); ++y) { |
| for (int x = 0; x < bitmap.width(); ++x) { |