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

Unified Diff: ui/views/animation/ink_drop_host_view.cc

Issue 2709283002: Avoid to change layer type in InkDropHostView::AddInkDropLayer (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/animation/ink_drop_host_view.cc
diff --git a/ui/views/animation/ink_drop_host_view.cc b/ui/views/animation/ink_drop_host_view.cc
index 4d56b362811719b2946030e148d45c7edd21af21..f37e61c59a9e7df25e991c1edba6cf986cc05317 100644
--- a/ui/views/animation/ink_drop_host_view.cc
+++ b/ui/views/animation/ink_drop_host_view.cc
@@ -126,6 +126,7 @@ InkDropHostView::~InkDropHostView() {
}
void InkDropHostView::AddInkDropLayer(ui::Layer* ink_drop_layer) {
+ DCHECK(!layer() || layer()->type() == ui::LAYER_TEXTURED);
sky 2017/02/22 21:29:49 Please add a comment as to why this expects ui::LA
yiyix 2017/02/22 23:15:39 I tried to answer your questions in the descriptio
old_paint_to_layer_ = layer() != nullptr;
SetPaintToLayer();
layer()->SetFillsBoundsOpaquely(false);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698