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

Unified Diff: cc/trees/property_tree.cc

Issue 2130053002: cc: Clean up Layer and LayerTreeHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@start_minor_layer_cleanup
Patch Set: Rebase Created 4 years, 5 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/trees/layer_tree_impl.cc ('k') | cc/trees/property_tree_builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/property_tree.cc
diff --git a/cc/trees/property_tree.cc b/cc/trees/property_tree.cc
index 62de5d75493dac8b93349a11498d4fdb6eb10743..d2b3783a5724dc82c0c44fadb6e5c24e3e3b5279 100644
--- a/cc/trees/property_tree.cc
+++ b/cc/trees/property_tree.cc
@@ -10,6 +10,7 @@
#include "base/logging.h"
#include "base/memory/ptr_util.h"
#include "base/trace_event/trace_event_argument.h"
+#include "cc/animation/animation_host.h"
#include "cc/layers/layer_impl.h"
#include "cc/output/copy_output_request.h"
#include "cc/proto/property_tree.pb.h"
@@ -1817,12 +1818,14 @@ CombinedAnimationScale PropertyTrees::GetAnimationScales(
// TODO(sunxd): make LayerTreeImpl::MaximumTargetScale take layer id as
// parameter.
LayerImpl* layer_impl = layer_tree_impl->LayerById(node->owner_id);
- layer_tree_impl->MaximumTargetScale(
- layer_impl, &cached_data_.animation_scales[transform_node_id]
- .local_maximum_animation_target_scale);
- layer_tree_impl->AnimationStartScale(
- layer_impl, &cached_data_.animation_scales[transform_node_id]
- .local_starting_animation_scale);
+ layer_impl->GetAnimationHost()->MaximumTargetScale(
+ layer_impl->element_id(), layer_impl->GetElementTypeForAnimation(),
+ &cached_data_.animation_scales[transform_node_id]
+ .local_maximum_animation_target_scale);
+ layer_impl->GetAnimationHost()->AnimationStartScale(
+ layer_impl->element_id(), layer_impl->GetElementTypeForAnimation(),
+ &cached_data_.animation_scales[transform_node_id]
+ .local_starting_animation_scale);
gfx::Vector2dF local_scales =
MathUtil::ComputeTransform2dScaleComponents(node->local, 0.f);
float max_local_scale = std::max(local_scales.x(), local_scales.y());
« no previous file with comments | « cc/trees/layer_tree_impl.cc ('k') | cc/trees/property_tree_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698