| 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 1450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1461 base->add_clip_children_ids(child->id()); | 1461 base->add_clip_children_ids(child->id()); |
| 1462 } | 1462 } |
| 1463 | 1463 |
| 1464 ScrollOffsetToProto(scroll_offset_, base->mutable_scroll_offset()); | 1464 ScrollOffsetToProto(scroll_offset_, base->mutable_scroll_offset()); |
| 1465 | 1465 |
| 1466 // TODO(nyquist): Figure out what to do with CopyRequests. | 1466 // TODO(nyquist): Figure out what to do with CopyRequests. |
| 1467 // See crbug.com/570374. | 1467 // See crbug.com/570374. |
| 1468 | 1468 |
| 1469 RectToProto(update_rect_, base->mutable_update_rect()); | 1469 RectToProto(update_rect_, base->mutable_update_rect()); |
| 1470 | 1470 |
| 1471 // TODO(nyquist): Figure out what to do with LayerAnimationController. | 1471 // TODO(nyquist): Figure out what to do with ElementAnimations. |
| 1472 // See crbug.com/570376. | 1472 // See crbug.com/570376. |
| 1473 | 1473 |
| 1474 update_rect_ = gfx::Rect(); | 1474 update_rect_ = gfx::Rect(); |
| 1475 } | 1475 } |
| 1476 | 1476 |
| 1477 void Layer::FromLayerSpecificPropertiesProto( | 1477 void Layer::FromLayerSpecificPropertiesProto( |
| 1478 const proto::LayerProperties& proto) { | 1478 const proto::LayerProperties& proto) { |
| 1479 DCHECK(proto.has_base()); | 1479 DCHECK(proto.has_base()); |
| 1480 DCHECK(layer_tree_host_); | 1480 DCHECK(layer_tree_host_); |
| 1481 const proto::BaseLayerProperties& base = proto.base(); | 1481 const proto::BaseLayerProperties& base = proto.base(); |
| (...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1820 ->data.num_copy_requests_in_subtree; | 1820 ->data.num_copy_requests_in_subtree; |
| 1821 } | 1821 } |
| 1822 | 1822 |
| 1823 gfx::Transform Layer::screen_space_transform() const { | 1823 gfx::Transform Layer::screen_space_transform() const { |
| 1824 DCHECK_NE(transform_tree_index_, -1); | 1824 DCHECK_NE(transform_tree_index_, -1); |
| 1825 return draw_property_utils::ScreenSpaceTransform( | 1825 return draw_property_utils::ScreenSpaceTransform( |
| 1826 this, layer_tree_host_->property_trees()->transform_tree); | 1826 this, layer_tree_host_->property_trees()->transform_tree); |
| 1827 } | 1827 } |
| 1828 | 1828 |
| 1829 } // namespace cc | 1829 } // namespace cc |
| OLD | NEW |