| 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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 | 234 |
| 235 void AddClipChild(Layer* child); | 235 void AddClipChild(Layer* child); |
| 236 void RemoveClipChild(Layer* child); | 236 void RemoveClipChild(Layer* child); |
| 237 | 237 |
| 238 std::set<Layer*>* clip_children() { return clip_children_.get(); } | 238 std::set<Layer*>* clip_children() { return clip_children_.get(); } |
| 239 const std::set<Layer*>* clip_children() const { | 239 const std::set<Layer*>* clip_children() const { |
| 240 return clip_children_.get(); | 240 return clip_children_.get(); |
| 241 } | 241 } |
| 242 | 242 |
| 243 // TODO(enne): Fix style here (and everywhere) once LayerImpl does the same. | 243 // TODO(enne): Fix style here (and everywhere) once LayerImpl does the same. |
| 244 gfx::Transform draw_transform() const; | |
| 245 gfx::Transform screen_space_transform() const; | 244 gfx::Transform screen_space_transform() const; |
| 246 | 245 |
| 247 void set_num_unclipped_descendants(size_t descendants) { | 246 void set_num_unclipped_descendants(size_t descendants) { |
| 248 num_unclipped_descendants_ = descendants; | 247 num_unclipped_descendants_ = descendants; |
| 249 } | 248 } |
| 250 size_t num_unclipped_descendants() const { | 249 size_t num_unclipped_descendants() const { |
| 251 return num_unclipped_descendants_; | 250 return num_unclipped_descendants_; |
| 252 } | 251 } |
| 253 | 252 |
| 254 void SetScrollOffset(const gfx::ScrollOffset& scroll_offset); | 253 void SetScrollOffset(const gfx::ScrollOffset& scroll_offset); |
| (...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 692 | 691 |
| 693 std::vector<FrameTimingRequest> frame_timing_requests_; | 692 std::vector<FrameTimingRequest> frame_timing_requests_; |
| 694 bool frame_timing_requests_dirty_; | 693 bool frame_timing_requests_dirty_; |
| 695 | 694 |
| 696 DISALLOW_COPY_AND_ASSIGN(Layer); | 695 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 697 }; | 696 }; |
| 698 | 697 |
| 699 } // namespace cc | 698 } // namespace cc |
| 700 | 699 |
| 701 #endif // CC_LAYERS_LAYER_H_ | 700 #endif // CC_LAYERS_LAYER_H_ |
| OLD | NEW |