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

Unified Diff: ui/views/view_unittest_aura.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: ui/views/view_unittest_aura.cc
diff --git a/ui/views/view_unittest_aura.cc b/ui/views/view_unittest_aura.cc
index 66a9fd0fb6c31098c6cb2e17d2aee245ab964dbf..18bf99687d550a3885d47bedb499efe03e501017 100644
--- a/ui/views/view_unittest_aura.cc
+++ b/ui/views/view_unittest_aura.cc
@@ -9,6 +9,7 @@
#include "ui/aura/window.h"
#include "ui/compositor/layer.h"
#include "ui/compositor/layer_tree_owner.h"
+#include "ui/compositor/layer_type.h"
#include "ui/compositor/test/test_layers.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/views/test/views_test_base.h"
@@ -36,7 +37,7 @@ Widget* CreateControlWidget(aura::Window* parent, const gfx::Rect& bounds) {
View* CreateViewWithLayer(const gfx::Rect& bounds, const char* layer_name) {
View* view = new View();
view->SetBoundsRect(bounds);
- view->SetPaintToLayer(true);
+ view->SetPaintToLayer(ui::LAYER_TEXTURED);
view->layer()->set_name(layer_name);
return view;
}

Powered by Google App Engine
This is Rietveld 408576698