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

Unified Diff: cc/layers/layer_impl.cc

Issue 2006103004: Send takeover msg from MT to CC using the animation path. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: jbroman nits Created 4 years, 7 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 | « cc/layers/layer_impl.h ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_impl.cc
diff --git a/cc/layers/layer_impl.cc b/cc/layers/layer_impl.cc
index 8dd57fd4c47b6d4c4be533194d6244915b68aec5..1d373eec763070f7f5ed7c6f52d3a11a44f46eb9 100644
--- a/cc/layers/layer_impl.cc
+++ b/cc/layers/layer_impl.cc
@@ -414,23 +414,6 @@ std::unique_ptr<LayerImpl> LayerImpl::CreateLayerImpl(
return LayerImpl::Create(tree_impl, layer_id_);
}
-void LayerImpl::set_main_thread_scrolling_reasons(
- uint32_t main_thread_scrolling_reasons) {
- if (main_thread_scrolling_reasons_ == main_thread_scrolling_reasons)
- return;
-
- if (main_thread_scrolling_reasons &
- MainThreadScrollingReason::kHasNonLayerViewportConstrainedObjects &&
- layer_tree_impl()) {
- if (layer_tree_impl()->ScrollOffsetIsAnimatingOnImplOnly(this)) {
- const bool needs_completion = true;
- layer_tree_impl()->ScrollAnimationAbort(needs_completion);
- }
- }
-
- main_thread_scrolling_reasons_ = main_thread_scrolling_reasons;
-}
-
void LayerImpl::PushPropertiesTo(LayerImpl* layer) {
layer->SetBackgroundColor(background_color_);
layer->SetSafeOpaqueBackgroundColor(safe_opaque_background_color_);
« no previous file with comments | « cc/layers/layer_impl.h ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698