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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 bool can_use_lcd_text; | 66 bool can_use_lcd_text; |
67 | 67 |
68 // True if the layer needs to be clipped by clip_rect. | 68 // True if the layer needs to be clipped by clip_rect. |
69 bool is_clipped; | 69 bool is_clipped; |
70 | 70 |
71 // The layer whose coordinate space this layer draws into. This can be | 71 // The layer whose coordinate space this layer draws into. This can be |
72 // either the same layer (draw_properties_.render_target == this) or an | 72 // either the same layer (draw_properties_.render_target == this) or an |
73 // ancestor of this layer. | 73 // ancestor of this layer. |
74 LayerType* render_target; | 74 LayerType* render_target; |
75 | 75 |
76 // The surface that this layer and its subtree would contribute to. | |
77 scoped_ptr<typename LayerType::RenderSurfaceType> render_surface; | |
78 | |
79 // This rect is in the layer's content space. | 76 // This rect is in the layer's content space. |
80 gfx::Rect visible_content_rect; | 77 gfx::Rect visible_content_rect; |
81 | 78 |
82 // In target surface space, the rect that encloses the clipped, drawable | 79 // In target surface space, the rect that encloses the clipped, drawable |
83 // content of the layer. | 80 // content of the layer. |
84 gfx::Rect drawable_content_rect; | 81 gfx::Rect drawable_content_rect; |
85 | 82 |
86 // In target surface space, the original rect that clipped this layer. This | 83 // In target surface space, the original rect that clipped this layer. This |
87 // value is used to avoid unnecessarily changing GL scissor state. | 84 // value is used to avoid unnecessarily changing GL scissor state. |
88 gfx::Rect clip_rect; | 85 gfx::Rect clip_rect; |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 // have page scale applied and others not, this may differ between layers. | 142 // have page scale applied and others not, this may differ between layers. |
146 float page_scale_factor; | 143 float page_scale_factor; |
147 | 144 |
148 // The device scale factor that is applied to the layer. | 145 // The device scale factor that is applied to the layer. |
149 float device_scale_factor; | 146 float device_scale_factor; |
150 }; | 147 }; |
151 | 148 |
152 } // namespace cc | 149 } // namespace cc |
153 | 150 |
154 #endif // CC_LAYERS_DRAW_PROPERTIES_H_ | 151 #endif // CC_LAYERS_DRAW_PROPERTIES_H_ |
OLD | NEW |