| OLD | NEW |
| 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 #ifndef CC_LAYERS_LAYER_IMPL_H_ | 5 #ifndef CC_LAYERS_LAYER_IMPL_H_ |
| 6 #define CC_LAYERS_LAYER_IMPL_H_ | 6 #define CC_LAYERS_LAYER_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 SetNeedsPushProperties(); | 159 SetNeedsPushProperties(); |
| 160 } | 160 } |
| 161 void set_opacity_tree_index(int index) { | 161 void set_opacity_tree_index(int index) { |
| 162 opacity_tree_index_ = index; | 162 opacity_tree_index_ = index; |
| 163 SetNeedsPushProperties(); | 163 SetNeedsPushProperties(); |
| 164 } | 164 } |
| 165 int clip_tree_index() const { return clip_tree_index_; } | 165 int clip_tree_index() const { return clip_tree_index_; } |
| 166 int transform_tree_index() const { return transform_tree_index_; } | 166 int transform_tree_index() const { return transform_tree_index_; } |
| 167 int opacity_tree_index() const { return opacity_tree_index_; } | 167 int opacity_tree_index() const { return opacity_tree_index_; } |
| 168 | 168 |
| 169 void set_offset_to_transform_parent(gfx::Vector2dF offset) { | 169 void set_offset_to_transform_parent(const gfx::Vector2dF& offset) { |
| 170 offset_to_transform_parent_ = offset; | 170 offset_to_transform_parent_ = offset; |
| 171 SetNeedsPushProperties(); | 171 SetNeedsPushProperties(); |
| 172 } | 172 } |
| 173 gfx::Vector2dF offset_to_transform_parent() const { | 173 gfx::Vector2dF offset_to_transform_parent() const { |
| 174 return offset_to_transform_parent_; | 174 return offset_to_transform_parent_; |
| 175 } | 175 } |
| 176 | 176 |
| 177 const gfx::Rect& visible_rect_from_property_trees() const { | 177 const gfx::Rect& visible_rect_from_property_trees() const { |
| 178 return visible_rect_from_property_trees_; | 178 return visible_rect_from_property_trees_; |
| 179 } | 179 } |
| (...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 829 | 829 |
| 830 std::vector<FrameTimingRequest> frame_timing_requests_; | 830 std::vector<FrameTimingRequest> frame_timing_requests_; |
| 831 bool frame_timing_requests_dirty_; | 831 bool frame_timing_requests_dirty_; |
| 832 | 832 |
| 833 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 833 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 834 }; | 834 }; |
| 835 | 835 |
| 836 } // namespace cc | 836 } // namespace cc |
| 837 | 837 |
| 838 #endif // CC_LAYERS_LAYER_IMPL_H_ | 838 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |