Index: ui/app_list/views/apps_grid_view.cc |
diff --git a/ui/app_list/views/apps_grid_view.cc b/ui/app_list/views/apps_grid_view.cc |
index 1de02d6716d6d2971e48c5cdc0df03b4157ca6d0..bd2db5e9dcb0fa3236953af0e8d0d3192a513a80 100644 |
--- a/ui/app_list/views/apps_grid_view.cc |
+++ b/ui/app_list/views/apps_grid_view.cc |
@@ -23,6 +23,7 @@ |
#include "ui/app_list/views/page_switcher.h" |
#include "ui/app_list/views/pulsing_block_view.h" |
#include "ui/app_list/views/top_icon_animation_view.h" |
+#include "ui/compositor/layer_type.h" |
#include "ui/compositor/scoped_layer_animation_settings.h" |
#include "ui/events/event.h" |
#include "ui/gfx/animation/animation.h" |
@@ -222,7 +223,7 @@ AppsGridView::AppsGridView(AppsGridViewDelegate* delegate) |
bounds_animator_(this), |
activated_folder_item_view_(NULL), |
dragging_for_reparent_item_(false) { |
- SetPaintToLayer(true); |
+ SetPaintToLayer(ui::LAYER_TEXTURED); |
// Clip any icons that are outside the grid view's bounds. These icons would |
// otherwise be visible to the user when the grid view is off screen. |
layer()->SetMasksToBounds(true); |
@@ -558,7 +559,7 @@ void AppsGridView::InitiateDragFromReparentItemInRootLevelGridView( |
AppListItemView* view = new AppListItemView(this, original_drag_view->item()); |
AddChildView(view); |
drag_view_ = view; |
- drag_view_->SetPaintToLayer(true); |
+ drag_view_->SetPaintToLayer(ui::LAYER_TEXTURED); |
drag_view_->layer()->SetFillsBoundsOpaquely(false); |
drag_view_->SetBoundsRect(drag_view_rect); |
drag_view_->SetDragUIState(); // Hide the title of the drag_view_. |
@@ -825,7 +826,7 @@ AppListItemView* AppsGridView::CreateViewForItemAtIndex(size_t index) { |
DCHECK_LE(index, item_list_->item_count()); |
AppListItemView* view = new AppListItemView(this, |
item_list_->item_at(index)); |
- view->SetPaintToLayer(true); |
+ view->SetPaintToLayer(ui::LAYER_TEXTURED); |
view->layer()->SetFillsBoundsOpaquely(false); |
return view; |
} |