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

Unified Diff: chrome/browser/ui/views/payments/view_stack.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: chrome/browser/ui/views/payments/view_stack.cc
diff --git a/chrome/browser/ui/views/payments/view_stack.cc b/chrome/browser/ui/views/payments/view_stack.cc
index 1336745239e947071e5d608021c3f7c9c3e4fe7d..88e9dd5adf0786912469d47222338eca209e1a10 100644
--- a/chrome/browser/ui/views/payments/view_stack.cc
+++ b/chrome/browser/ui/views/payments/view_stack.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/ui/views/payments/view_stack.h"
#include "base/memory/ptr_util.h"
+#include "ui/compositor/layer_type.h"
#include "ui/views/layout/fill_layout.h"
ViewStack::ViewStack()
@@ -16,7 +17,7 @@ ViewStack::ViewStack()
// Paint to a layer and Mask to Bounds, otherwise descendant views that paint
// to a layer themselves will still paint while they're being animated out and
// are out of bounds of their parent.
- SetPaintToLayer(true);
+ SetPaintToLayer(ui::LAYER_TEXTURED);
layer()->SetMasksToBounds(true);
}

Powered by Google App Engine
This is Rietveld 408576698