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_RENDER_SURFACE_IMPL_H_ | 5 #ifndef CC_LAYERS_RENDER_SURFACE_IMPL_H_ |
6 #define CC_LAYERS_RENDER_SURFACE_IMPL_H_ | 6 #define CC_LAYERS_RENDER_SURFACE_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 void AppendQuads(QuadSink* quad_sink, | 138 void AppendQuads(QuadSink* quad_sink, |
139 AppendQuadsData* append_quads_data, | 139 AppendQuadsData* append_quads_data, |
140 bool for_replica, | 140 bool for_replica, |
141 RenderPass::Id render_pass_id); | 141 RenderPass::Id render_pass_id); |
142 | 142 |
143 private: | 143 private: |
144 LayerImpl* owning_layer_; | 144 LayerImpl* owning_layer_; |
145 | 145 |
146 // Uses this surface's space. | 146 // Uses this surface's space. |
147 gfx::Rect content_rect_; | 147 gfx::Rect content_rect_; |
148 bool surface_property_changed_; | 148 bool surface_property_changed_ : 1; |
| 149 bool draw_opacity_is_animating_ : 1; |
| 150 bool target_surface_transforms_are_animating_ : 1; |
| 151 bool screen_space_transforms_are_animating_ : 1; |
| 152 |
| 153 bool is_clipped_ : 1; |
| 154 bool contributes_to_drawn_surface_ : 1; |
149 | 155 |
150 float draw_opacity_; | 156 float draw_opacity_; |
151 bool draw_opacity_is_animating_; | |
152 gfx::Transform draw_transform_; | 157 gfx::Transform draw_transform_; |
153 gfx::Transform screen_space_transform_; | 158 gfx::Transform screen_space_transform_; |
154 gfx::Transform replica_draw_transform_; | 159 gfx::Transform replica_draw_transform_; |
155 gfx::Transform replica_screen_space_transform_; | 160 gfx::Transform replica_screen_space_transform_; |
156 bool target_surface_transforms_are_animating_; | |
157 bool screen_space_transforms_are_animating_; | |
158 | |
159 bool is_clipped_; | |
160 bool contributes_to_drawn_surface_; | |
161 | 161 |
162 // Uses the space of the surface's target surface. | 162 // Uses the space of the surface's target surface. |
163 gfx::Rect clip_rect_; | 163 gfx::Rect clip_rect_; |
164 | 164 |
165 LayerImplList layer_list_; | 165 LayerImplList layer_list_; |
166 std::vector<DelegatedRendererLayerImpl*> | 166 std::vector<DelegatedRendererLayerImpl*> |
167 contributing_delegated_render_pass_layer_list_; | 167 contributing_delegated_render_pass_layer_list_; |
168 | 168 |
169 // The nearest ancestor target surface that will contain the contents of this | 169 // The nearest ancestor target surface that will contain the contents of this |
170 // surface, and that ignores outside occlusion. This can point to itself. | 170 // surface, and that ignores outside occlusion. This can point to itself. |
171 RenderSurfaceImpl* nearest_occlusion_immune_ancestor_; | 171 RenderSurfaceImpl* nearest_occlusion_immune_ancestor_; |
172 | 172 |
173 scoped_ptr<DamageTracker> damage_tracker_; | 173 scoped_ptr<DamageTracker> damage_tracker_; |
174 | 174 |
175 // For LayerIteratorActions | 175 // For LayerIteratorActions |
176 int target_render_surface_layer_index_history_; | 176 int target_render_surface_layer_index_history_; |
177 int current_layer_index_history_; | 177 int current_layer_index_history_; |
178 | 178 |
179 friend struct LayerIteratorActions; | 179 friend struct LayerIteratorActions; |
180 | 180 |
181 DISALLOW_COPY_AND_ASSIGN(RenderSurfaceImpl); | 181 DISALLOW_COPY_AND_ASSIGN(RenderSurfaceImpl); |
182 }; | 182 }; |
183 | 183 |
184 } // namespace cc | 184 } // namespace cc |
185 #endif // CC_LAYERS_RENDER_SURFACE_IMPL_H_ | 185 #endif // CC_LAYERS_RENDER_SURFACE_IMPL_H_ |
OLD | NEW |