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

Side by Side Diff: cc/trees/layer_tree_impl.cc

Issue 1700653002: CC Animation: Expose TargetProperty enum to be aliased in Blink Platform. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 10 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 unified diff | Download patch
« no previous file with comments | « cc/trees/layer_tree_impl.h ('k') | cc/trees/property_tree_builder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/trees/layer_tree_impl.h" 5 #include "cc/trees/layer_tree_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 1905 matching lines...) Expand 10 before | Expand all | Expand 10 after
1916 IsActiveTree() ? LayerTreeType::ACTIVE : LayerTreeType::PENDING; 1916 IsActiveTree() ? LayerTreeType::ACTIVE : LayerTreeType::PENDING;
1917 return layer_tree_host_impl_->animation_host() 1917 return layer_tree_host_impl_->animation_host()
1918 ? layer_tree_host_impl_->animation_host() 1918 ? layer_tree_host_impl_->animation_host()
1919 ->HasPotentiallyRunningTransformAnimation(layer->id(), 1919 ->HasPotentiallyRunningTransformAnimation(layer->id(),
1920 tree_type) 1920 tree_type)
1921 : false; 1921 : false;
1922 } 1922 }
1923 1923
1924 bool LayerTreeImpl::HasAnyAnimationTargetingProperty( 1924 bool LayerTreeImpl::HasAnyAnimationTargetingProperty(
1925 const LayerImpl* layer, 1925 const LayerImpl* layer,
1926 Animation::TargetProperty property) const { 1926 TargetProperty::Type property) const {
1927 return layer_tree_host_impl_->animation_host() 1927 return layer_tree_host_impl_->animation_host()
1928 ? layer_tree_host_impl_->animation_host() 1928 ? layer_tree_host_impl_->animation_host()
1929 ->HasAnyAnimationTargetingProperty(layer->id(), property) 1929 ->HasAnyAnimationTargetingProperty(layer->id(), property)
1930 : false; 1930 : false;
1931 } 1931 }
1932 1932
1933 bool LayerTreeImpl::FilterIsAnimatingOnImplOnly(const LayerImpl* layer) const { 1933 bool LayerTreeImpl::FilterIsAnimatingOnImplOnly(const LayerImpl* layer) const {
1934 return layer_tree_host_impl_->animation_host() 1934 return layer_tree_host_impl_->animation_host()
1935 ? layer_tree_host_impl_->animation_host() 1935 ? layer_tree_host_impl_->animation_host()
1936 ->FilterIsAnimatingOnImplOnly(layer->id()) 1936 ->FilterIsAnimatingOnImplOnly(layer->id())
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
2028 const gfx::BoxF& box, 2028 const gfx::BoxF& box,
2029 gfx::BoxF* bounds) const { 2029 gfx::BoxF* bounds) const {
2030 *bounds = gfx::BoxF(); 2030 *bounds = gfx::BoxF();
2031 return layer_tree_host_impl_->animation_host() 2031 return layer_tree_host_impl_->animation_host()
2032 ? layer_tree_host_impl_->animation_host() 2032 ? layer_tree_host_impl_->animation_host()
2033 ->TransformAnimationBoundsForBox(layer->id(), box, bounds) 2033 ->TransformAnimationBoundsForBox(layer->id(), box, bounds)
2034 : true; 2034 : true;
2035 } 2035 }
2036 2036
2037 } // namespace cc 2037 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_impl.h ('k') | cc/trees/property_tree_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698