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

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

Issue 24175004: Remove dependency on ui::ScaleFactor from ui/gfx (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix new usage of scale in FastShowPickler Created 7 years, 3 months 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
« no previous file with comments | « ui/gfx/win/dpi.cc ('k') | ui/native_theme/native_theme_base.cc » ('j') | 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 b6e8bcc8d4b96ca9becff7db7025794647d4202b..11b3474f51ad2b3b3e7750cf708bd79a3301a0e6 100644
--- a/ui/message_center/views/notification_view.cc
+++ b/ui/message_center/views/notification_view.cc
@@ -108,7 +108,8 @@ bool HasAlpha(gfx::ImageSkia& image, views::Widget* widget) {
}
// Extract that bitmap's alpha and look for a non-opaque pixel there.
- SkBitmap bitmap = image.GetRepresentation(factor).sk_bitmap();
+ SkBitmap bitmap =
+ image.GetRepresentation(ui::GetImageScale(factor)).sk_bitmap();
if (!bitmap.isNull()) {
SkBitmap alpha;
alpha.setConfig(SkBitmap::kA1_Config, bitmap.width(), bitmap.height(), 0);
« no previous file with comments | « ui/gfx/win/dpi.cc ('k') | ui/native_theme/native_theme_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698