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

Unified Diff: cc/trees/layer_tree_impl.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.h ('k') | cc/trees/property_tree.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_impl.cc
diff --git a/cc/trees/layer_tree_impl.cc b/cc/trees/layer_tree_impl.cc
index 4d6ec7072fc88a60f6fc56c95ab1bbeca193761b..28f904a3e680bc304eafd7ca093501b44afe4f0d 100644
--- a/cc/trees/layer_tree_impl.cc
+++ b/cc/trees/layer_tree_impl.cc
@@ -1985,122 +1985,6 @@ LayerTreeImpl::TakePendingPageScaleAnimation() {
return std::move(pending_page_scale_animation_);
}
-bool LayerTreeImpl::IsAnimatingFilterProperty(const LayerImpl* layer) const {
- ElementListType list_type =
- IsActiveTree() ? ElementListType::ACTIVE : ElementListType::PENDING;
- return layer_tree_host_impl_->animation_host()->IsAnimatingFilterProperty(
- layer->element_id(), list_type);
-}
-
-bool LayerTreeImpl::IsAnimatingOpacityProperty(const LayerImpl* layer) const {
- ElementListType list_type =
- IsActiveTree() ? ElementListType::ACTIVE : ElementListType::PENDING;
- return layer_tree_host_impl_->animation_host()->IsAnimatingOpacityProperty(
- layer->element_id(), list_type);
-}
-
-bool LayerTreeImpl::IsAnimatingTransformProperty(const LayerImpl* layer) const {
- ElementListType list_type =
- IsActiveTree() ? ElementListType::ACTIVE : ElementListType::PENDING;
- return layer_tree_host_impl_->animation_host()->IsAnimatingTransformProperty(
- layer->element_id(), list_type);
-}
-
-bool LayerTreeImpl::HasPotentiallyRunningFilterAnimation(
- const LayerImpl* layer) const {
- ElementListType list_type =
- IsActiveTree() ? ElementListType::ACTIVE : ElementListType::PENDING;
- return layer_tree_host_impl_->animation_host()
- ->HasPotentiallyRunningFilterAnimation(layer->element_id(), list_type);
-}
-
-bool LayerTreeImpl::HasPotentiallyRunningOpacityAnimation(
- const LayerImpl* layer) const {
- ElementListType list_type =
- IsActiveTree() ? ElementListType::ACTIVE : ElementListType::PENDING;
- return layer_tree_host_impl_->animation_host()
- ->HasPotentiallyRunningOpacityAnimation(layer->element_id(), list_type);
-}
-
-bool LayerTreeImpl::HasPotentiallyRunningTransformAnimation(
- const LayerImpl* layer) const {
- ElementListType list_type =
- IsActiveTree() ? ElementListType::ACTIVE : ElementListType::PENDING;
- return layer_tree_host_impl_->animation_host()
- ->HasPotentiallyRunningTransformAnimation(layer->element_id(), list_type);
-}
-
-bool LayerTreeImpl::HasAnyAnimationTargetingProperty(
- const LayerImpl* layer,
- TargetProperty::Type property) const {
- return layer_tree_host_impl_->animation_host()
- ->HasAnyAnimationTargetingProperty(layer->element_id(), property);
-}
-
-bool LayerTreeImpl::AnimationsPreserveAxisAlignment(
- const LayerImpl* layer) const {
- return layer_tree_host_impl_->animation_host()
- ->AnimationsPreserveAxisAlignment(layer->element_id());
-}
-
-bool LayerTreeImpl::HasOnlyTranslationTransforms(const LayerImpl* layer) const {
- ElementListType list_type =
- IsActiveTree() ? ElementListType::ACTIVE : ElementListType::PENDING;
- return layer_tree_host_impl_->animation_host()->HasOnlyTranslationTransforms(
- layer->element_id(), list_type);
-}
-
-bool LayerTreeImpl::MaximumTargetScale(const LayerImpl* layer,
- float* max_scale) const {
- *max_scale = 0.f;
- ElementListType list_type =
- IsActiveTree() ? ElementListType::ACTIVE : ElementListType::PENDING;
- return layer_tree_host_impl_->animation_host()->MaximumTargetScale(
- layer->element_id(), list_type, max_scale);
-}
-
-bool LayerTreeImpl::AnimationStartScale(const LayerImpl* layer,
- float* start_scale) const {
- *start_scale = 0.f;
- ElementListType list_type =
- IsActiveTree() ? ElementListType::ACTIVE : ElementListType::PENDING;
- return layer_tree_host_impl_->animation_host()->AnimationStartScale(
- layer->element_id(), list_type, start_scale);
-}
-
-bool LayerTreeImpl::HasFilterAnimationThatInflatesBounds(
- const LayerImpl* layer) const {
- return layer_tree_host_impl_->animation_host()
- ->HasFilterAnimationThatInflatesBounds(layer->element_id());
-}
-
-bool LayerTreeImpl::HasTransformAnimationThatInflatesBounds(
- const LayerImpl* layer) const {
- return layer_tree_host_impl_->animation_host()
- ->HasTransformAnimationThatInflatesBounds(layer->element_id());
-}
-
-bool LayerTreeImpl::HasAnimationThatInflatesBounds(
- const LayerImpl* layer) const {
- return layer_tree_host_impl_->animation_host()
- ->HasAnimationThatInflatesBounds(layer->element_id());
-}
-
-bool LayerTreeImpl::FilterAnimationBoundsForBox(const LayerImpl* layer,
- const gfx::BoxF& box,
- gfx::BoxF* bounds) const {
- return layer_tree_host_impl_->animation_host()->FilterAnimationBoundsForBox(
- layer->element_id(), box, bounds);
-}
-
-bool LayerTreeImpl::TransformAnimationBoundsForBox(const LayerImpl* layer,
- const gfx::BoxF& box,
- gfx::BoxF* bounds) const {
- *bounds = gfx::BoxF();
- return layer_tree_host_impl_->animation_host()
- ->TransformAnimationBoundsForBox(layer->element_id(), box, bounds);
-}
-
void LayerTreeImpl::ScrollAnimationAbort(bool needs_completion) {
layer_tree_host_impl_->animation_host()->ScrollAnimationAbort(
needs_completion);
« no previous file with comments | « cc/trees/layer_tree_impl.h ('k') | cc/trees/property_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698