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

Unified Diff: ash/common/system/tray/tray_popup_item_container.cc

Issue 2639203007: Update SetPaintToLayer to accept LayerType (Closed)
Patch Set: Refactor Created 3 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
Index: ash/common/system/tray/tray_popup_item_container.cc
diff --git a/ash/common/system/tray/tray_popup_item_container.cc b/ash/common/system/tray/tray_popup_item_container.cc
index f342878f2046ee8a69484ba8e1927bcae3cee09a..62fcb5439ae430fd12365381187a5c2b8961ac2e 100644
--- a/ash/common/system/tray/tray_popup_item_container.cc
+++ b/ash/common/system/tray/tray_popup_item_container.cc
@@ -5,6 +5,7 @@
#include "ash/common/system/tray/tray_popup_item_container.h"
#include "ash/common/system/tray/tray_constants.h"
+#include "ui/compositor/layer_type.h"
#include "ui/gfx/canvas.h"
#include "ui/views/layout/box_layout.h"
@@ -19,7 +20,7 @@ TrayPopupItemContainer::TrayPopupItemContainer(views::View* view,
layout->SetDefaultFlex(1);
SetLayoutManager(layout);
if (view->layer()) {
- SetPaintToLayer(true);
+ SetPaintToLayer(ui::LAYER_TEXTURED);
layer()->SetFillsBoundsOpaquely(view->layer()->fills_bounds_opaquely());
}
AddChildView(view);

Powered by Google App Engine
This is Rietveld 408576698