| 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 1425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1436 inputs_.mutable_properties = properties; | 1436 inputs_.mutable_properties = properties; |
| 1437 SetNeedsCommit(); | 1437 SetNeedsCommit(); |
| 1438 } | 1438 } |
| 1439 | 1439 |
| 1440 int Layer::num_copy_requests_in_target_subtree() { | 1440 int Layer::num_copy_requests_in_target_subtree() { |
| 1441 return layer_tree_host_->property_trees() | 1441 return layer_tree_host_->property_trees() |
| 1442 ->effect_tree.Node(effect_tree_index()) | 1442 ->effect_tree.Node(effect_tree_index()) |
| 1443 ->num_copy_requests_in_subtree; | 1443 ->num_copy_requests_in_subtree; |
| 1444 } | 1444 } |
| 1445 | 1445 |
| 1446 gfx::Transform Layer::screen_space_transform() const { | 1446 gfx::Transform Layer::ScreenSpaceTransform() const { |
| 1447 DCHECK_NE(transform_tree_index_, TransformTree::kInvalidNodeId); | 1447 DCHECK_NE(transform_tree_index_, TransformTree::kInvalidNodeId); |
| 1448 return draw_property_utils::ScreenSpaceTransform( | 1448 return draw_property_utils::ScreenSpaceTransform( |
| 1449 this, layer_tree_host_->property_trees()->transform_tree); | 1449 this, layer_tree_host_->property_trees()->transform_tree); |
| 1450 } | 1450 } |
| 1451 | 1451 |
| 1452 } // namespace cc | 1452 } // namespace cc |
| OLD | NEW |