Chromium Code Reviews| 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 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 480 // a Commit. This is called right after property tree being built and should | 480 // a Commit. This is called right after property tree being built and should |
| 481 // not trigger property tree rebuild. | 481 // not trigger property tree rebuild. |
| 482 void SetHasRenderSurface(bool has_render_surface); | 482 void SetHasRenderSurface(bool has_render_surface); |
| 483 bool has_render_surface() const { | 483 bool has_render_surface() const { |
| 484 return has_render_surface_; | 484 return has_render_surface_; |
| 485 } | 485 } |
| 486 | 486 |
| 487 void SetSubtreePropertyChanged(); | 487 void SetSubtreePropertyChanged(); |
| 488 bool subtree_property_changed() const { return subtree_property_changed_; } | 488 bool subtree_property_changed() const { return subtree_property_changed_; } |
| 489 | 489 |
| 490 void SetLayerPropertyChanged(); | |
| 491 bool layer_property_changed() const { return layer_property_changed_; } | |
|
ajuma
2016/04/21 23:59:14
There aren't any real non-test callers of SetForce
jaydasika
2016/04/22 17:00:38
Done.
| |
| 492 | |
| 490 void DidBeginTracing(); | 493 void DidBeginTracing(); |
| 491 | 494 |
| 492 int num_copy_requests_in_target_subtree(); | 495 int num_copy_requests_in_target_subtree(); |
| 493 | 496 |
| 494 void SetElementId(uint64_t id); | 497 void SetElementId(uint64_t id); |
| 495 uint64_t element_id() const { return element_id_; } | 498 uint64_t element_id() const { return element_id_; } |
| 496 | 499 |
| 497 void SetMutableProperties(uint32_t properties); | 500 void SetMutableProperties(uint32_t properties); |
| 498 uint32_t mutable_properties() const { return mutable_properties_; } | 501 uint32_t mutable_properties() const { return mutable_properties_; } |
| 499 | 502 |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 636 bool contents_opaque_ : 1; | 639 bool contents_opaque_ : 1; |
| 637 bool double_sided_ : 1; | 640 bool double_sided_ : 1; |
| 638 bool should_flatten_transform_ : 1; | 641 bool should_flatten_transform_ : 1; |
| 639 bool use_parent_backface_visibility_ : 1; | 642 bool use_parent_backface_visibility_ : 1; |
| 640 bool use_local_transform_for_backface_visibility_ : 1; | 643 bool use_local_transform_for_backface_visibility_ : 1; |
| 641 bool should_check_backface_visibility_ : 1; | 644 bool should_check_backface_visibility_ : 1; |
| 642 bool force_render_surface_ : 1; | 645 bool force_render_surface_ : 1; |
| 643 bool transform_is_invertible_ : 1; | 646 bool transform_is_invertible_ : 1; |
| 644 bool has_render_surface_ : 1; | 647 bool has_render_surface_ : 1; |
| 645 bool subtree_property_changed_ : 1; | 648 bool subtree_property_changed_ : 1; |
| 649 bool layer_property_changed_ : 1; | |
| 646 Region non_fast_scrollable_region_; | 650 Region non_fast_scrollable_region_; |
| 647 Region touch_event_handler_region_; | 651 Region touch_event_handler_region_; |
| 648 gfx::PointF position_; | 652 gfx::PointF position_; |
| 649 SkColor background_color_; | 653 SkColor background_color_; |
| 650 SkColor safe_opaque_background_color_; | 654 SkColor safe_opaque_background_color_; |
| 651 float opacity_; | 655 float opacity_; |
| 652 SkXfermode::Mode blend_mode_; | 656 SkXfermode::Mode blend_mode_; |
| 653 // draw_blend_mode may be different than blend_mode_, | 657 // draw_blend_mode may be different than blend_mode_, |
| 654 // when a RenderSurface re-parents the layer's blend_mode. | 658 // when a RenderSurface re-parents the layer's blend_mode. |
| 655 SkXfermode::Mode draw_blend_mode_; | 659 SkXfermode::Mode draw_blend_mode_; |
| (...skipping 23 matching lines...) Expand all Loading... | |
| 679 // These all act like draw properties, so don't need push properties. | 683 // These all act like draw properties, so don't need push properties. |
| 680 gfx::Rect visible_layer_rect_; | 684 gfx::Rect visible_layer_rect_; |
| 681 size_t num_unclipped_descendants_; | 685 size_t num_unclipped_descendants_; |
| 682 | 686 |
| 683 DISALLOW_COPY_AND_ASSIGN(Layer); | 687 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 684 }; | 688 }; |
| 685 | 689 |
| 686 } // namespace cc | 690 } // namespace cc |
| 687 | 691 |
| 688 #endif // CC_LAYERS_LAYER_H_ | 692 #endif // CC_LAYERS_LAYER_H_ |
| OLD | NEW |