Index: cc/trees/layer_tree_impl.cc |
diff --git a/cc/trees/layer_tree_impl.cc b/cc/trees/layer_tree_impl.cc |
index 9ae1138aa87c3ebd4c372037af0d5ae5597827cd..e0083466cf21847a3e50ecd520c0b7838d93ddee 100644 |
--- a/cc/trees/layer_tree_impl.cc |
+++ b/cc/trees/layer_tree_impl.cc |
@@ -1975,6 +1975,12 @@ LayerImpl* LayerTreeImpl::FindLayerThatIsHitByPointInTouchHandlerRegion( |
} |
void LayerTreeImpl::RegisterSelection(const LayerSelection& selection) { |
+ if (selection_ == selection) |
+ return; |
+ |
+ if (IsActiveTree()) |
+ layer_tree_host_impl_->HandleVisibilityChanged(); |
+ |
selection_ = selection; |
} |