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

Unified Diff: cc/input/scrollbar_animation_controller_thinning.cc

Issue 2273933002: cc : Delete LayerImpl::OnOpacityAnimated (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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: cc/input/scrollbar_animation_controller_thinning.cc
diff --git a/cc/input/scrollbar_animation_controller_thinning.cc b/cc/input/scrollbar_animation_controller_thinning.cc
index 1a124ddf05093f27f89e5506272a5f7449fed89d..291479b5ae566f612937b9a8c67bd432a4a035c0 100644
--- a/cc/input/scrollbar_animation_controller_thinning.cc
+++ b/cc/input/scrollbar_animation_controller_thinning.cc
@@ -143,7 +143,15 @@ void ScrollbarAnimationControllerThinning::ApplyOpacityAndThumbThicknessScale(
? AdjustScale(opacity, scrollbar->Opacity(), opacity_change_)
: 0;
- scrollbar->OnOpacityAnimated(effective_opacity);
+ PropertyTrees* property_trees =
+ scrollbar->layer_tree_impl()->property_trees();
+ if (property_trees->IsInIdToIndexMap(PropertyTrees::TreeType::EFFECT,
ajuma 2016/08/23 23:48:16 Here too, please add a comment.
jaydasika 2016/08/24 00:37:46 Done.
+ scrollbar->id())) {
+ property_trees->effect_tree.OnOpacityAnimated(
+ effective_opacity,
+ property_trees->effect_id_to_index_map[scrollbar->id()],
+ scrollbar->layer_tree_impl());
+ }
scrollbar->SetThumbThicknessScaleFactor(AdjustScale(
thumb_thickness_scale, scrollbar->thumb_thickness_scale_factor(),
thickness_change_));

Powered by Google App Engine
This is Rietveld 408576698