Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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_IMPL_H_ | 5 #ifndef CC_LAYERS_LAYER_IMPL_H_ |
| 6 #define CC_LAYERS_LAYER_IMPL_H_ | 6 #define CC_LAYERS_LAYER_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 794 // active side. | 794 // active side. |
| 795 int num_dependents_need_push_properties_; | 795 int num_dependents_need_push_properties_; |
| 796 | 796 |
| 797 // Layers that share a sorting context id will be sorted together in 3d | 797 // Layers that share a sorting context id will be sorted together in 3d |
| 798 // space. 0 is a special value that means this layer will not be sorted and | 798 // space. 0 is a special value that means this layer will not be sorted and |
| 799 // will be drawn in paint order. | 799 // will be drawn in paint order. |
| 800 int sorting_context_id_; | 800 int sorting_context_id_; |
| 801 | 801 |
| 802 DrawMode current_draw_mode_; | 802 DrawMode current_draw_mode_; |
| 803 | 803 |
| 804 // Group of properties that need to be computed based on the layer tree | |
| 805 // hierarchy before layers can be drawn. | |
| 806 DrawProperties<LayerImpl> draw_properties_; | |
|
enne (OOO)
2015/04/29 18:01:24
Could you just call draw_properties() that returns
| |
| 807 | |
| 804 private: | 808 private: |
| 805 // Rect indicating what was repainted/updated during update. | 809 // Rect indicating what was repainted/updated during update. |
| 806 // Note that plugin layers bypass this and leave it empty. | 810 // Note that plugin layers bypass this and leave it empty. |
| 807 // Uses layer (not content) space. | 811 // Uses layer (not content) space. |
| 808 gfx::Rect update_rect_; | 812 gfx::Rect update_rect_; |
| 809 | 813 |
| 810 // This rect is in layer space. | 814 // This rect is in layer space. |
| 811 gfx::RectF damage_rect_; | 815 gfx::RectF damage_rect_; |
| 812 | 816 |
| 813 // Manages animations for this layer. | 817 // Manages animations for this layer. |
| 814 scoped_refptr<LayerAnimationController> layer_animation_controller_; | 818 scoped_refptr<LayerAnimationController> layer_animation_controller_; |
| 815 | 819 |
| 816 // Manages scrollbars for this layer | 820 // Manages scrollbars for this layer |
| 817 scoped_ptr<ScrollbarAnimationController> scrollbar_animation_controller_; | 821 scoped_ptr<ScrollbarAnimationController> scrollbar_animation_controller_; |
| 818 | 822 |
| 819 scoped_ptr<ScrollbarSet> scrollbars_; | 823 scoped_ptr<ScrollbarSet> scrollbars_; |
| 820 | 824 |
| 821 ScopedPtrVector<CopyOutputRequest> copy_requests_; | 825 ScopedPtrVector<CopyOutputRequest> copy_requests_; |
| 822 | 826 |
| 823 // Group of properties that need to be computed based on the layer tree | |
| 824 // hierarchy before layers can be drawn. | |
| 825 DrawProperties<LayerImpl> draw_properties_; | |
| 826 | |
| 827 scoped_refptr<base::trace_event::ConvertableToTraceFormat> debug_info_; | 827 scoped_refptr<base::trace_event::ConvertableToTraceFormat> debug_info_; |
| 828 scoped_ptr<RenderSurfaceImpl> render_surface_; | 828 scoped_ptr<RenderSurfaceImpl> render_surface_; |
| 829 | 829 |
| 830 std::vector<FrameTimingRequest> frame_timing_requests_; | 830 std::vector<FrameTimingRequest> frame_timing_requests_; |
| 831 bool frame_timing_requests_dirty_; | 831 bool frame_timing_requests_dirty_; |
| 832 | 832 |
| 833 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 833 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 834 }; | 834 }; |
| 835 | 835 |
| 836 } // namespace cc | 836 } // namespace cc |
| 837 | 837 |
| 838 #endif // CC_LAYERS_LAYER_IMPL_H_ | 838 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |