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

Unified Diff: cc/layers/layer_impl.cc

Issue 2882543002: Remove Layer{Impl}::HasOnlyTranslationTransforms. (Closed)
Patch Set: Created 3 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') | no next file » | 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 3ee0f7534c17f7e2df443936015d490963f51954..5d2ed7e5b1df5923f6b3223c76f2e699c1f2c6f6 100644
--- a/cc/layers/layer_impl.cc
+++ b/cc/layers/layer_impl.cc
@@ -484,7 +484,9 @@ void LayerImpl::UpdatePropertyTreeForScrollingAndAnimationIfNeeded() {
bool has_potential_animation = HasPotentiallyRunningTransformAnimation();
if (node->has_potential_animation != has_potential_animation) {
node->has_potential_animation = has_potential_animation;
- node->has_only_translation_animations = HasOnlyTranslationTransforms();
+ node->has_only_translation_animations =
+ GetMutatorHost()->HasOnlyTranslationTransforms(
+ element_id(), GetElementTypeForAnimation());
GetTransformTree().set_needs_update(true);
layer_tree_impl()->set_needs_update_draw_properties();
}
@@ -680,11 +682,6 @@ bool LayerImpl::HasPotentiallyRunningTransformAnimation() const {
element_id(), GetElementTypeForAnimation());
}
-bool LayerImpl::HasOnlyTranslationTransforms() const {
- return GetMutatorHost()->HasOnlyTranslationTransforms(
- element_id(), GetElementTypeForAnimation());
-}
-
bool LayerImpl::HasAnyAnimationTargetingProperty(
TargetProperty::Type property) const {
return GetMutatorHost()->HasAnyAnimationTargetingProperty(element_id(),
« no previous file with comments | « cc/layers/layer_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698