OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_DRAW_PROPERTIES_H_ | 5 #ifndef CC_LAYERS_DRAW_PROPERTIES_H_ |
6 #define CC_LAYERS_DRAW_PROPERTIES_H_ | 6 #define CC_LAYERS_DRAW_PROPERTIES_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "ui/gfx/rect.h" | 9 #include "ui/gfx/rect.h" |
10 #include "ui/gfx/transform.h" | 10 #include "ui/gfx/transform.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 screen_space_transform_is_animating(false), | 23 screen_space_transform_is_animating(false), |
24 can_use_lcd_text(false), | 24 can_use_lcd_text(false), |
25 is_clipped(false), | 25 is_clipped(false), |
26 render_target(NULL), | 26 render_target(NULL), |
27 contents_scale_x(1.f), | 27 contents_scale_x(1.f), |
28 contents_scale_y(1.f), | 28 contents_scale_y(1.f), |
29 num_descendants_that_draw_content(0), | 29 num_descendants_that_draw_content(0), |
30 num_unclipped_descendants(0), | 30 num_unclipped_descendants(0), |
31 descendants_can_clip_selves(false), | 31 descendants_can_clip_selves(false), |
32 can_draw_directly_to_backbuffer(false), | 32 can_draw_directly_to_backbuffer(false), |
33 layer_or_descendant_has_copy_request(false) {} | 33 layer_or_descendant_has_copy_request(false), |
| 34 layer_or_descendant_has_event_handler(false) {} |
34 | 35 |
35 // Transforms objects from content space to target surface space, where | 36 // Transforms objects from content space to target surface space, where |
36 // this layer would be drawn. | 37 // this layer would be drawn. |
37 gfx::Transform target_space_transform; | 38 gfx::Transform target_space_transform; |
38 | 39 |
39 // Transforms objects from content space to screen space (viewport space). | 40 // Transforms objects from content space to screen space (viewport space). |
40 gfx::Transform screen_space_transform; | 41 gfx::Transform screen_space_transform; |
41 | 42 |
42 // DrawProperties::opacity may be different than LayerType::opacity, | 43 // DrawProperties::opacity may be different than LayerType::opacity, |
43 // particularly in the case when a RenderSurface re-parents the layer's | 44 // particularly in the case when a RenderSurface re-parents the layer's |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 | 96 |
96 // If true, every descendant in the sub-tree can clip itself without the | 97 // If true, every descendant in the sub-tree can clip itself without the |
97 // need to use hardware sissoring or a new render target. | 98 // need to use hardware sissoring or a new render target. |
98 bool descendants_can_clip_selves; | 99 bool descendants_can_clip_selves; |
99 | 100 |
100 bool can_draw_directly_to_backbuffer; | 101 bool can_draw_directly_to_backbuffer; |
101 | 102 |
102 // If true, the layer or some layer in its sub-tree has a CopyOutputRequest | 103 // If true, the layer or some layer in its sub-tree has a CopyOutputRequest |
103 // present on it. | 104 // present on it. |
104 bool layer_or_descendant_has_copy_request; | 105 bool layer_or_descendant_has_copy_request; |
| 106 |
| 107 // If true, the layer or some layer in its sub-tree has mousewheel or touch |
| 108 // event handlers, |
| 109 bool layer_or_descendant_has_event_handler; |
105 }; | 110 }; |
106 | 111 |
107 } // namespace cc | 112 } // namespace cc |
108 | 113 |
109 #endif // CC_LAYERS_DRAW_PROPERTIES_H_ | 114 #endif // CC_LAYERS_DRAW_PROPERTIES_H_ |
OLD | NEW |