| 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 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 423 | 423 |
| 424 void SetTransformTreeIndex(int index); | 424 void SetTransformTreeIndex(int index); |
| 425 int transform_tree_index() const; | 425 int transform_tree_index() const; |
| 426 | 426 |
| 427 void SetClipTreeIndex(int index); | 427 void SetClipTreeIndex(int index); |
| 428 int clip_tree_index() const; | 428 int clip_tree_index() const; |
| 429 | 429 |
| 430 void SetEffectTreeIndex(int index); | 430 void SetEffectTreeIndex(int index); |
| 431 int effect_tree_index() const; | 431 int effect_tree_index() const; |
| 432 | 432 |
| 433 // TODO(sunxd): Remove this when we do not compute target space transforms on |
| 434 // main thread in tests. |
| 435 int render_target_effect_tree_index() const; |
| 436 |
| 433 void SetScrollTreeIndex(int index); | 437 void SetScrollTreeIndex(int index); |
| 434 int scroll_tree_index() const; | 438 int scroll_tree_index() const; |
| 435 | 439 |
| 436 void set_offset_to_transform_parent(gfx::Vector2dF offset) { | 440 void set_offset_to_transform_parent(gfx::Vector2dF offset) { |
| 437 if (offset_to_transform_parent_ == offset) | 441 if (offset_to_transform_parent_ == offset) |
| 438 return; | 442 return; |
| 439 offset_to_transform_parent_ = offset; | 443 offset_to_transform_parent_ = offset; |
| 440 SetNeedsPushProperties(); | 444 SetNeedsPushProperties(); |
| 441 } | 445 } |
| 442 gfx::Vector2dF offset_to_transform_parent() const { | 446 gfx::Vector2dF offset_to_transform_parent() const { |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 719 // These all act like draw properties, so don't need push properties. | 723 // These all act like draw properties, so don't need push properties. |
| 720 gfx::Rect visible_layer_rect_; | 724 gfx::Rect visible_layer_rect_; |
| 721 size_t num_unclipped_descendants_; | 725 size_t num_unclipped_descendants_; |
| 722 | 726 |
| 723 DISALLOW_COPY_AND_ASSIGN(Layer); | 727 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 724 }; | 728 }; |
| 725 | 729 |
| 726 } // namespace cc | 730 } // namespace cc |
| 727 | 731 |
| 728 #endif // CC_LAYERS_LAYER_H_ | 732 #endif // CC_LAYERS_LAYER_H_ |
| OLD | NEW |