| OLD | NEW |
| 1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 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/layers/layer.h" | 5 #include "cc/layers/layer.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 1818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1829 SetNeedsPushProperties(); | 1829 SetNeedsPushProperties(); |
| 1830 } | 1830 } |
| 1831 | 1831 |
| 1832 int Layer::num_copy_requests_in_target_subtree() { | 1832 int Layer::num_copy_requests_in_target_subtree() { |
| 1833 return layer_tree_host() | 1833 return layer_tree_host() |
| 1834 ->property_trees() | 1834 ->property_trees() |
| 1835 ->effect_tree.Node(effect_tree_index()) | 1835 ->effect_tree.Node(effect_tree_index()) |
| 1836 ->data.num_copy_requests_in_subtree; | 1836 ->data.num_copy_requests_in_subtree; |
| 1837 } | 1837 } |
| 1838 | 1838 |
| 1839 gfx::Transform Layer::draw_transform() const { | |
| 1840 DCHECK_NE(transform_tree_index_, -1); | |
| 1841 return draw_property_utils::DrawTransform( | |
| 1842 this, layer_tree_host_->property_trees()->transform_tree); | |
| 1843 } | |
| 1844 | |
| 1845 gfx::Transform Layer::screen_space_transform() const { | 1839 gfx::Transform Layer::screen_space_transform() const { |
| 1846 DCHECK_NE(transform_tree_index_, -1); | 1840 DCHECK_NE(transform_tree_index_, -1); |
| 1847 return draw_property_utils::ScreenSpaceTransform( | 1841 return draw_property_utils::ScreenSpaceTransform( |
| 1848 this, layer_tree_host_->property_trees()->transform_tree); | 1842 this, layer_tree_host_->property_trees()->transform_tree); |
| 1849 } | 1843 } |
| 1850 | 1844 |
| 1851 } // namespace cc | 1845 } // namespace cc |
| OLD | NEW |