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

Unified Diff: ash/common/wallpaper/wallpaper_view.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/wallpaper/wallpaper_view.cc
diff --git a/ash/common/wallpaper/wallpaper_view.cc b/ash/common/wallpaper/wallpaper_view.cc
index c690b520feb77840413e258ae99a6a7cdbfc9c24..015785905d0433290bc5b4222efa3801e96a5a4c 100644
--- a/ash/common/wallpaper/wallpaper_view.cc
+++ b/ash/common/wallpaper/wallpaper_view.cc
@@ -13,6 +13,7 @@
#include "ash/common/wm_shell.h"
#include "ash/common/wm_window.h"
#include "ash/root_window_controller.h"
+#include "ui/compositor/layer_type.h"
#include "ui/display/display.h"
#include "ui/display/manager/managed_display_info.h"
#include "ui/display/screen.h"
@@ -34,7 +35,7 @@ class LayerControlView : public views::View {
public:
explicit LayerControlView(views::View* view) {
AddChildView(view);
- view->SetPaintToLayer(true);
+ view->SetPaintToLayer(ui::LAYER_TEXTURED);
}
// Overrides views::View.

Powered by Google App Engine
This is Rietveld 408576698