| 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 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 533 void set_clip_rect(const gfx::Rect& rect) { clip_rect_ = rect; } | 533 void set_clip_rect(const gfx::Rect& rect) { clip_rect_ = rect; } |
| 534 | 534 |
| 535 // This should only be called during BeginMainFrame since it does not trigger | 535 // This should only be called during BeginMainFrame since it does not trigger |
| 536 // a Commit. This is called right after property tree being built and should | 536 // a Commit. This is called right after property tree being built and should |
| 537 // not trigger property tree rebuild. | 537 // not trigger property tree rebuild. |
| 538 void SetHasRenderSurface(bool has_render_surface); | 538 void SetHasRenderSurface(bool has_render_surface); |
| 539 bool has_render_surface() const { | 539 bool has_render_surface() const { |
| 540 return has_render_surface_; | 540 return has_render_surface_; |
| 541 } | 541 } |
| 542 | 542 |
| 543 void SetSubtreePropertyChanged(); |
| 544 bool subtree_property_changed() const { return subtree_property_changed_; } |
| 545 |
| 543 // Sets new frame timing requests for this layer. | 546 // Sets new frame timing requests for this layer. |
| 544 void SetFrameTimingRequests(const std::vector<FrameTimingRequest>& requests); | 547 void SetFrameTimingRequests(const std::vector<FrameTimingRequest>& requests); |
| 545 | 548 |
| 546 // Accessor for unit tests | 549 // Accessor for unit tests |
| 547 const std::vector<FrameTimingRequest>& FrameTimingRequests() const { | 550 const std::vector<FrameTimingRequest>& FrameTimingRequests() const { |
| 548 return frame_timing_requests_; | 551 return frame_timing_requests_; |
| 549 } | 552 } |
| 550 | 553 |
| 551 void DidBeginTracing(); | 554 void DidBeginTracing(); |
| 552 | 555 |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 736 bool masks_to_bounds_ : 1; | 739 bool masks_to_bounds_ : 1; |
| 737 bool contents_opaque_ : 1; | 740 bool contents_opaque_ : 1; |
| 738 bool double_sided_ : 1; | 741 bool double_sided_ : 1; |
| 739 bool should_flatten_transform_ : 1; | 742 bool should_flatten_transform_ : 1; |
| 740 bool use_parent_backface_visibility_ : 1; | 743 bool use_parent_backface_visibility_ : 1; |
| 741 bool use_local_transform_for_backface_visibility_ : 1; | 744 bool use_local_transform_for_backface_visibility_ : 1; |
| 742 bool should_check_backface_visibility_ : 1; | 745 bool should_check_backface_visibility_ : 1; |
| 743 bool force_render_surface_ : 1; | 746 bool force_render_surface_ : 1; |
| 744 bool transform_is_invertible_ : 1; | 747 bool transform_is_invertible_ : 1; |
| 745 bool has_render_surface_ : 1; | 748 bool has_render_surface_ : 1; |
| 749 bool subtree_property_changed_ : 1; |
| 746 Region non_fast_scrollable_region_; | 750 Region non_fast_scrollable_region_; |
| 747 Region touch_event_handler_region_; | 751 Region touch_event_handler_region_; |
| 748 gfx::PointF position_; | 752 gfx::PointF position_; |
| 749 SkColor background_color_; | 753 SkColor background_color_; |
| 750 float opacity_; | 754 float opacity_; |
| 751 SkXfermode::Mode blend_mode_; | 755 SkXfermode::Mode blend_mode_; |
| 752 // draw_blend_mode may be different than blend_mode_, | 756 // draw_blend_mode may be different than blend_mode_, |
| 753 // when a RenderSurface re-parents the layer's blend_mode. | 757 // when a RenderSurface re-parents the layer's blend_mode. |
| 754 SkXfermode::Mode draw_blend_mode_; | 758 SkXfermode::Mode draw_blend_mode_; |
| 755 FilterOperations filters_; | 759 FilterOperations filters_; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 790 | 794 |
| 791 std::vector<FrameTimingRequest> frame_timing_requests_; | 795 std::vector<FrameTimingRequest> frame_timing_requests_; |
| 792 bool frame_timing_requests_dirty_; | 796 bool frame_timing_requests_dirty_; |
| 793 | 797 |
| 794 DISALLOW_COPY_AND_ASSIGN(Layer); | 798 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 795 }; | 799 }; |
| 796 | 800 |
| 797 } // namespace cc | 801 } // namespace cc |
| 798 | 802 |
| 799 #endif // CC_LAYERS_LAYER_H_ | 803 #endif // CC_LAYERS_LAYER_H_ |
| OLD | NEW |