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) { |