Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Unified Diff: ui/message_center/views/notification_view.cc

Issue 76683003: remove references to DEPRECATED SkBitmap::kA1_Config. No functional change expected. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« ui/gfx/ozone/dri/dri_skbitmap.cc ('K') | « ui/gfx/ozone/dri/dri_skbitmap.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« ui/gfx/ozone/dri/dri_skbitmap.cc ('K') | « ui/gfx/ozone/dri/dri_skbitmap.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698