| 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 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 493 void ClearPreferredRasterBounds(); | 493 void ClearPreferredRasterBounds(); |
| 494 | 494 |
| 495 AnimationHost* GetAnimationHost() const; | 495 AnimationHost* GetAnimationHost() const; |
| 496 | 496 |
| 497 ElementListType GetElementTypeForAnimation() const; | 497 ElementListType GetElementTypeForAnimation() const; |
| 498 | 498 |
| 499 // Tests in remote mode need to explicitly set the layer id so it matches the | 499 // Tests in remote mode need to explicitly set the layer id so it matches the |
| 500 // layer id for the corresponding Layer on the engine. | 500 // layer id for the corresponding Layer on the engine. |
| 501 void SetLayerIdForTesting(int id); | 501 void SetLayerIdForTesting(int id); |
| 502 | 502 |
| 503 void SetScrollbarsHiddenFromImplSide(bool hidden); |
| 504 |
| 503 protected: | 505 protected: |
| 504 friend class LayerImpl; | 506 friend class LayerImpl; |
| 505 friend class TreeSynchronizer; | 507 friend class TreeSynchronizer; |
| 506 virtual ~Layer(); | 508 virtual ~Layer(); |
| 507 Layer(); | 509 Layer(); |
| 508 | 510 |
| 509 LayerTreeHost* layer_tree_host() { return layer_tree_host_; } | 511 LayerTreeHost* layer_tree_host() { return layer_tree_host_; } |
| 510 | 512 |
| 511 // These SetNeeds functions are in order of severity of update: | 513 // These SetNeeds functions are in order of severity of update: |
| 512 // | 514 // |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 714 int scroll_tree_index_; | 716 int scroll_tree_index_; |
| 715 int property_tree_sequence_number_; | 717 int property_tree_sequence_number_; |
| 716 gfx::Vector2dF offset_to_transform_parent_; | 718 gfx::Vector2dF offset_to_transform_parent_; |
| 717 bool should_flatten_transform_from_property_tree_ : 1; | 719 bool should_flatten_transform_from_property_tree_ : 1; |
| 718 bool draws_content_ : 1; | 720 bool draws_content_ : 1; |
| 719 bool use_local_transform_for_backface_visibility_ : 1; | 721 bool use_local_transform_for_backface_visibility_ : 1; |
| 720 bool should_check_backface_visibility_ : 1; | 722 bool should_check_backface_visibility_ : 1; |
| 721 bool force_render_surface_for_testing_ : 1; | 723 bool force_render_surface_for_testing_ : 1; |
| 722 bool subtree_property_changed_ : 1; | 724 bool subtree_property_changed_ : 1; |
| 723 bool may_contain_video_ : 1; | 725 bool may_contain_video_ : 1; |
| 726 bool scrollbars_hidden_ : 1; |
| 724 SkColor safe_opaque_background_color_; | 727 SkColor safe_opaque_background_color_; |
| 725 // draw_blend_mode may be different than blend_mode_, | 728 // draw_blend_mode may be different than blend_mode_, |
| 726 // when a RenderSurface re-parents the layer's blend_mode. | 729 // when a RenderSurface re-parents the layer's blend_mode. |
| 727 SkXfermode::Mode draw_blend_mode_; | 730 SkXfermode::Mode draw_blend_mode_; |
| 728 std::unique_ptr<std::set<Layer*>> scroll_children_; | 731 std::unique_ptr<std::set<Layer*>> scroll_children_; |
| 729 | 732 |
| 730 std::unique_ptr<std::set<Layer*>> clip_children_; | 733 std::unique_ptr<std::set<Layer*>> clip_children_; |
| 731 | 734 |
| 732 PaintProperties paint_properties_; | 735 PaintProperties paint_properties_; |
| 733 | 736 |
| 734 // These all act like draw properties, so don't need push properties. | 737 // These all act like draw properties, so don't need push properties. |
| 735 gfx::Rect visible_layer_rect_; | 738 gfx::Rect visible_layer_rect_; |
| 736 size_t num_unclipped_descendants_; | 739 size_t num_unclipped_descendants_; |
| 737 | 740 |
| 738 DISALLOW_COPY_AND_ASSIGN(Layer); | 741 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 739 }; | 742 }; |
| 740 | 743 |
| 741 } // namespace cc | 744 } // namespace cc |
| 742 | 745 |
| 743 #endif // CC_LAYERS_LAYER_H_ | 746 #endif // CC_LAYERS_LAYER_H_ |
| OLD | NEW |