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 <memory> |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "cc/cc_export.h" | 15 #include "cc/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 "cc/trees/property_tree.h" | 20 #include "cc/trees/property_tree.h" |
21 #include "ui/gfx/geometry/rect.h" | 21 #include "ui/gfx/geometry/rect.h" |
22 #include "ui/gfx/geometry/rect_f.h" | 22 #include "ui/gfx/geometry/rect_f.h" |
23 #include "ui/gfx/transform.h" | 23 #include "ui/gfx/transform.h" |
24 | 24 |
25 namespace cc { | 25 namespace cc { |
26 | 26 |
| 27 class AppendQuadsData; |
27 class DamageTracker; | 28 class DamageTracker; |
28 class FilterOperations; | 29 class FilterOperations; |
29 class Occlusion; | 30 class Occlusion; |
30 class LayerImpl; | 31 class LayerImpl; |
31 class LayerTreeImpl; | 32 class LayerTreeImpl; |
32 | 33 |
33 struct AppendQuadsData; | |
34 | |
35 class CC_EXPORT RenderSurfaceImpl { | 34 class CC_EXPORT RenderSurfaceImpl { |
36 public: | 35 public: |
37 RenderSurfaceImpl(LayerTreeImpl* layer_tree_impl, int stable_effect_id); | 36 RenderSurfaceImpl(LayerTreeImpl* layer_tree_impl, int stable_effect_id); |
38 virtual ~RenderSurfaceImpl(); | 37 virtual ~RenderSurfaceImpl(); |
39 | 38 |
40 // Returns the RenderSurfaceImpl that this render surface contributes to. Root | 39 // Returns the RenderSurfaceImpl that this render surface contributes to. Root |
41 // render surface's render_target is itself. | 40 // render surface's render_target is itself. |
42 RenderSurfaceImpl* render_target(); | 41 RenderSurfaceImpl* render_target(); |
43 const RenderSurfaceImpl* render_target() const; | 42 const RenderSurfaceImpl* render_target() const; |
44 | 43 |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 // surface, and that ignores outside occlusion. This can point to itself. | 218 // surface, and that ignores outside occlusion. This can point to itself. |
220 const RenderSurfaceImpl* nearest_occlusion_immune_ancestor_; | 219 const RenderSurfaceImpl* nearest_occlusion_immune_ancestor_; |
221 | 220 |
222 std::unique_ptr<DamageTracker> damage_tracker_; | 221 std::unique_ptr<DamageTracker> damage_tracker_; |
223 | 222 |
224 DISALLOW_COPY_AND_ASSIGN(RenderSurfaceImpl); | 223 DISALLOW_COPY_AND_ASSIGN(RenderSurfaceImpl); |
225 }; | 224 }; |
226 | 225 |
227 } // namespace cc | 226 } // namespace cc |
228 #endif // CC_LAYERS_RENDER_SURFACE_IMPL_H_ | 227 #endif // CC_LAYERS_RENDER_SURFACE_IMPL_H_ |
OLD | NEW |