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

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: 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
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 43cf4e5e5ae68b138ca77436799f8a3f9a4122a6..616c78c873059590fc0c43233b2eb2e432e2b006 100644
--- a/ui/message_center/views/notification_view.cc
+++ b/ui/message_center/views/notification_view.cc
@@ -104,7 +104,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::GetScaleFactorScale(factor)).sk_bitmap();
if (!bitmap.isNull()) {
SkBitmap alpha;
alpha.setConfig(SkBitmap::kA1_Config, bitmap.width(), bitmap.height(), 0);

Powered by Google App Engine
This is Rietveld 408576698