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

Unified Diff: ui/arc/notification/arc_custom_notification_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: ui/arc/notification/arc_custom_notification_view.cc
diff --git a/ui/arc/notification/arc_custom_notification_view.cc b/ui/arc/notification/arc_custom_notification_view.cc
index 8e33e369cb25f1de5a8c3a22c3d447bc86426a0f..54d39c324986db94946b39d886c9c0f7511f030d 100644
--- a/ui/arc/notification/arc_custom_notification_view.cc
+++ b/ui/arc/notification/arc_custom_notification_view.cc
@@ -13,6 +13,7 @@
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/compositor/layer_animation_observer.h"
+#include "ui/compositor/layer_type.h"
#include "ui/display/screen.h"
#include "ui/events/event_handler.h"
#include "ui/gfx/canvas.h"
@@ -238,7 +239,7 @@ ArcCustomNotificationView::ArcCustomNotificationView(
OnNotificationSurfaceAdded(surface);
// Create a layer as an anchor to insert surface copy during a slide.
- SetPaintToLayer(true);
+ SetPaintToLayer(ui::LAYER_TEXTURED);
UpdatePreferredSize();
}

Powered by Google App Engine
This is Rietveld 408576698