| 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 #ifndef CC_LAYERS_LAYER_H_ | 5 #ifndef CC_LAYERS_LAYER_H_ |
| 6 #define CC_LAYERS_LAYER_H_ | 6 #define CC_LAYERS_LAYER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 | 195 |
| 196 void SetClipParent(Layer* ancestor); | 196 void SetClipParent(Layer* ancestor); |
| 197 | 197 |
| 198 Layer* clip_parent() { return inputs_.clip_parent; } | 198 Layer* clip_parent() { return inputs_.clip_parent; } |
| 199 | 199 |
| 200 std::set<Layer*>* clip_children() { return clip_children_.get(); } | 200 std::set<Layer*>* clip_children() { return clip_children_.get(); } |
| 201 const std::set<Layer*>* clip_children() const { | 201 const std::set<Layer*>* clip_children() const { |
| 202 return clip_children_.get(); | 202 return clip_children_.get(); |
| 203 } | 203 } |
| 204 | 204 |
| 205 // TODO(enne): Fix style here (and everywhere) once LayerImpl does the same. | 205 gfx::Transform ScreenSpaceTransform() const; |
| 206 gfx::Transform screen_space_transform() const; | |
| 207 | 206 |
| 208 void set_num_unclipped_descendants(size_t descendants) { | 207 void set_num_unclipped_descendants(size_t descendants) { |
| 209 num_unclipped_descendants_ = descendants; | 208 num_unclipped_descendants_ = descendants; |
| 210 } | 209 } |
| 211 size_t num_unclipped_descendants() const { | 210 size_t num_unclipped_descendants() const { |
| 212 return num_unclipped_descendants_; | 211 return num_unclipped_descendants_; |
| 213 } | 212 } |
| 214 | 213 |
| 215 void SetScrollOffset(const gfx::ScrollOffset& scroll_offset); | 214 void SetScrollOffset(const gfx::ScrollOffset& scroll_offset); |
| 216 | 215 |
| (...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 638 // These all act like draw properties, so don't need push properties. | 637 // These all act like draw properties, so don't need push properties. |
| 639 gfx::Rect visible_layer_rect_; | 638 gfx::Rect visible_layer_rect_; |
| 640 size_t num_unclipped_descendants_; | 639 size_t num_unclipped_descendants_; |
| 641 | 640 |
| 642 DISALLOW_COPY_AND_ASSIGN(Layer); | 641 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 643 }; | 642 }; |
| 644 | 643 |
| 645 } // namespace cc | 644 } // namespace cc |
| 646 | 645 |
| 647 #endif // CC_LAYERS_LAYER_H_ | 646 #endif // CC_LAYERS_LAYER_H_ |
| OLD | NEW |