| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> |
| 10 #include <string> | 11 #include <string> |
| 11 #include <vector> | 12 #include <vector> |
| 12 | 13 |
| 13 #include "base/macros.h" | 14 #include "base/macros.h" |
| 14 #include "base/memory/scoped_ptr.h" | |
| 15 #include "cc/base/cc_export.h" | 15 #include "cc/base/cc_export.h" |
| 16 #include "cc/layers/layer_collections.h" | 16 #include "cc/layers/layer_collections.h" |
| 17 #include "cc/quads/render_pass.h" | 17 #include "cc/quads/render_pass.h" |
| 18 #include "cc/quads/shared_quad_state.h" | 18 #include "cc/quads/shared_quad_state.h" |
| 19 #include "cc/trees/occlusion.h" | 19 #include "cc/trees/occlusion.h" |
| 20 #include "ui/gfx/geometry/rect.h" | 20 #include "ui/gfx/geometry/rect.h" |
| 21 #include "ui/gfx/geometry/rect_f.h" | 21 #include "ui/gfx/geometry/rect_f.h" |
| 22 #include "ui/gfx/transform.h" | 22 #include "ui/gfx/transform.h" |
| 23 | 23 |
| 24 namespace cc { | 24 namespace cc { |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 | 196 |
| 197 bool contributes_to_drawn_surface_ : 1; | 197 bool contributes_to_drawn_surface_ : 1; |
| 198 | 198 |
| 199 LayerImplList layer_list_; | 199 LayerImplList layer_list_; |
| 200 Occlusion occlusion_in_content_space_; | 200 Occlusion occlusion_in_content_space_; |
| 201 | 201 |
| 202 // The nearest ancestor target surface that will contain the contents of this | 202 // The nearest ancestor target surface that will contain the contents of this |
| 203 // surface, and that ignores outside occlusion. This can point to itself. | 203 // surface, and that ignores outside occlusion. This can point to itself. |
| 204 RenderSurfaceImpl* nearest_occlusion_immune_ancestor_; | 204 RenderSurfaceImpl* nearest_occlusion_immune_ancestor_; |
| 205 | 205 |
| 206 scoped_ptr<DamageTracker> damage_tracker_; | 206 std::unique_ptr<DamageTracker> damage_tracker_; |
| 207 | 207 |
| 208 // For LayerIteratorActions | 208 // For LayerIteratorActions |
| 209 int target_render_surface_layer_index_history_; | 209 int target_render_surface_layer_index_history_; |
| 210 size_t current_layer_index_history_; | 210 size_t current_layer_index_history_; |
| 211 | 211 |
| 212 friend class LayerIterator; | 212 friend class LayerIterator; |
| 213 | 213 |
| 214 DISALLOW_COPY_AND_ASSIGN(RenderSurfaceImpl); | 214 DISALLOW_COPY_AND_ASSIGN(RenderSurfaceImpl); |
| 215 }; | 215 }; |
| 216 | 216 |
| 217 } // namespace cc | 217 } // namespace cc |
| 218 #endif // CC_LAYERS_RENDER_SURFACE_IMPL_H_ | 218 #endif // CC_LAYERS_RENDER_SURFACE_IMPL_H_ |
| OLD | NEW |