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

Unified Diff: ui/message_center/message_popup_bubble.cc

Issue 11836003: Allow message center and related bubbles to render on Windows. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Move comment and early return instead of big blocks. Created 7 years, 11 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/message_center/message_center_bubble.cc ('k') | ui/message_center/quiet_mode_bubble.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/message_popup_bubble.cc
diff --git a/ui/message_center/message_popup_bubble.cc b/ui/message_center/message_popup_bubble.cc
index 4b733c2f61ce47cdc76fb47e1a4c5f91e85fe1e7..1f9e3f26b688d295616bd323b13151d8c296c0fe 100644
--- a/ui/message_center/message_popup_bubble.cc
+++ b/ui/message_center/message_popup_bubble.cc
@@ -51,9 +51,11 @@ class PopupBubbleContentsView : public views::View {
new views::BoxLayout(views::BoxLayout::kVertical, 0, 0, 1));
AddChildView(content_);
- content_->SetPaintToLayer(true);
- content_->SetFillsBoundsOpaquely(false);
- content_->layer()->SetMasksToBounds(true);
+ if (get_use_acceleration_when_possible()) {
+ content_->SetPaintToLayer(true);
+ content_->SetFillsBoundsOpaquely(false);
+ content_->layer()->SetMasksToBounds(true);
+ }
}
void Update(const NotificationList::Notifications& popup_notifications) {
« no previous file with comments | « ui/message_center/message_center_bubble.cc ('k') | ui/message_center/quiet_mode_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698