| 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 <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 462 virtual bool NeedsVisibleRectUpdated() const; | 462 virtual bool NeedsVisibleRectUpdated() const; |
| 463 | 463 |
| 464 virtual void RunMicroBenchmark(MicroBenchmark* benchmark); | 464 virtual void RunMicroBenchmark(MicroBenchmark* benchmark); |
| 465 | 465 |
| 466 void Set3dSortingContextId(int id); | 466 void Set3dSortingContextId(int id); |
| 467 int sorting_context_id() const { return sorting_context_id_; } | 467 int sorting_context_id() const { return sorting_context_id_; } |
| 468 | 468 |
| 469 // The tree index is slightly counter-intuitive. If |this| is in the transform | 469 // The tree index is slightly counter-intuitive. If |this| is in the transform |
| 470 // tree, then the index corresponds to this layer's spot in the tree. | 470 // tree, then the index corresponds to this layer's spot in the tree. |
| 471 // Otherwise, the it is the index of our transform parent. | 471 // Otherwise, the it is the index of our transform parent. |
| 472 void set_transform_tree_index(size_t index) { transform_tree_index_ = index; } | 472 void set_transform_tree_index(int index) { transform_tree_index_ = index; } |
| 473 void set_opacity_tree_index(size_t index) { opacity_tree_index_ = index; } | 473 void set_opacity_tree_index(int index) { opacity_tree_index_ = index; } |
| 474 void set_clip_tree_index(size_t index) { clip_tree_index_ = index; } | 474 void set_clip_tree_index(int index) { clip_tree_index_ = index; } |
| 475 int clip_tree_index() const { return clip_tree_index_; } | 475 int clip_tree_index() const { return clip_tree_index_; } |
| 476 int transform_tree_index() const { return transform_tree_index_; } | 476 int transform_tree_index() const { return transform_tree_index_; } |
| 477 int opacity_tree_index() const { return opacity_tree_index_; } | 477 int opacity_tree_index() const { return opacity_tree_index_; } |
| 478 | 478 |
| 479 void set_offset_to_transform_parent(gfx::Vector2dF offset) { | 479 void set_offset_to_transform_parent(gfx::Vector2dF offset) { |
| 480 offset_to_transform_parent_ = offset; | 480 offset_to_transform_parent_ = offset; |
| 481 } | 481 } |
| 482 gfx::Vector2dF offset_to_transform_parent() const { | 482 gfx::Vector2dF offset_to_transform_parent() const { |
| 483 return offset_to_transform_parent_; | 483 return offset_to_transform_parent_; |
| 484 } | 484 } |
| 485 | 485 |
| 486 // TODO(vollick): Nuke. |
| 486 void set_fixed_position_container(Layer* layer) { | 487 void set_fixed_position_container(Layer* layer) { |
| 487 fixed_position_container_ = layer; | 488 fixed_position_container_ = layer; |
| 488 } | 489 } |
| 489 Layer* fixed_position_container() const { return fixed_position_container_; } | 490 Layer* fixed_position_container() const { return fixed_position_container_; } |
| 490 | 491 |
| 491 const gfx::Rect& hack_visible_rect() const { return hack_visible_rect_; } | 492 const gfx::Rect& hack_visible_rect() const { return hack_visible_rect_; } |
| 492 | 493 |
| 493 void set_hack_visible_rect(const gfx::Rect& rect) { | 494 void set_hack_visible_rect(const gfx::Rect& rect) { |
| 494 hack_visible_rect_ = rect; | 495 hack_visible_rect_ = rect; |
| 495 } | 496 } |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 678 | 679 |
| 679 PaintProperties paint_properties_; | 680 PaintProperties paint_properties_; |
| 680 | 681 |
| 681 gfx::Rect hack_visible_rect_; | 682 gfx::Rect hack_visible_rect_; |
| 682 DISALLOW_COPY_AND_ASSIGN(Layer); | 683 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 683 }; | 684 }; |
| 684 | 685 |
| 685 } // namespace cc | 686 } // namespace cc |
| 686 | 687 |
| 687 #endif // CC_LAYERS_LAYER_H_ | 688 #endif // CC_LAYERS_LAYER_H_ |
| OLD | NEW |