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

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

Issue 1505243003: Revert of Create RenderSurface on Effect Tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@alwayspt
Patch Set: rebase Created 5 years 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/layer_tree_impl_unittest.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 <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <set> 9 #include <set>
10 10
(...skipping 1826 matching lines...) Expand 10 before | Expand all | Expand 10 after
1837 } 1837 }
1838 1838
1839 bool LayerTreeImpl::TransformIsAnimatingOnImplOnly( 1839 bool LayerTreeImpl::TransformIsAnimatingOnImplOnly(
1840 const LayerImpl* layer) const { 1840 const LayerImpl* layer) const {
1841 return layer_tree_host_impl_->animation_host() 1841 return layer_tree_host_impl_->animation_host()
1842 ? layer_tree_host_impl_->animation_host() 1842 ? layer_tree_host_impl_->animation_host()
1843 ->TransformIsAnimatingOnImplOnly(layer->id()) 1843 ->TransformIsAnimatingOnImplOnly(layer->id())
1844 : false; 1844 : false;
1845 } 1845 }
1846 1846
1847 bool LayerTreeImpl::AnimationsPreserveAxisAlignment(
1848 const LayerImpl* layer) const {
1849 return layer_tree_host_impl_->animation_host()
1850 ? layer_tree_host_impl_->animation_host()
1851 ->AnimationsPreserveAxisAlignment(layer->id())
1852 : true;
1853 }
1854
1855 bool LayerTreeImpl::HasOnlyTranslationTransforms(const LayerImpl* layer) const { 1847 bool LayerTreeImpl::HasOnlyTranslationTransforms(const LayerImpl* layer) const {
1856 LayerTreeType tree_type = 1848 LayerTreeType tree_type =
1857 IsActiveTree() ? LayerTreeType::ACTIVE : LayerTreeType::PENDING; 1849 IsActiveTree() ? LayerTreeType::ACTIVE : LayerTreeType::PENDING;
1858 return layer_tree_host_impl_->animation_host() 1850 return layer_tree_host_impl_->animation_host()
1859 ? layer_tree_host_impl_->animation_host() 1851 ? layer_tree_host_impl_->animation_host()
1860 ->HasOnlyTranslationTransforms(layer->id(), tree_type) 1852 ->HasOnlyTranslationTransforms(layer->id(), tree_type)
1861 : true; 1853 : true;
1862 } 1854 }
1863 1855
1864 bool LayerTreeImpl::MaximumTargetScale(const LayerImpl* layer, 1856 bool LayerTreeImpl::MaximumTargetScale(const LayerImpl* layer,
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
1920 const gfx::BoxF& box, 1912 const gfx::BoxF& box,
1921 gfx::BoxF* bounds) const { 1913 gfx::BoxF* bounds) const {
1922 *bounds = gfx::BoxF(); 1914 *bounds = gfx::BoxF();
1923 return layer_tree_host_impl_->animation_host() 1915 return layer_tree_host_impl_->animation_host()
1924 ? layer_tree_host_impl_->animation_host() 1916 ? layer_tree_host_impl_->animation_host()
1925 ->TransformAnimationBoundsForBox(layer->id(), box, bounds) 1917 ->TransformAnimationBoundsForBox(layer->id(), box, bounds)
1926 : true; 1918 : true;
1927 } 1919 }
1928 1920
1929 } // namespace cc 1921 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_impl.h ('k') | cc/trees/layer_tree_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698