| 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> |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 class Occlusion; | 29 class Occlusion; |
| 30 class RenderPassSink; | 30 class RenderPassSink; |
| 31 class LayerImpl; | 31 class LayerImpl; |
| 32 class LayerIterator; | 32 class LayerIterator; |
| 33 class LayerTreeImpl; | 33 class LayerTreeImpl; |
| 34 | 34 |
| 35 struct AppendQuadsData; | 35 struct AppendQuadsData; |
| 36 | 36 |
| 37 class CC_EXPORT RenderSurfaceImpl { | 37 class CC_EXPORT RenderSurfaceImpl { |
| 38 public: | 38 public: |
| 39 explicit RenderSurfaceImpl(LayerImpl* owning_layer); | 39 RenderSurfaceImpl(LayerTreeImpl* layer_tree_impl, int stable_effect_id); |
| 40 virtual ~RenderSurfaceImpl(); | 40 virtual ~RenderSurfaceImpl(); |
| 41 | 41 |
| 42 // Returns the RenderSurfaceImpl that this render surface contributes to. Root | 42 // Returns the RenderSurfaceImpl that this render surface contributes to. Root |
| 43 // render surface's render_target is itself. | 43 // render surface's render_target is itself. |
| 44 RenderSurfaceImpl* render_target(); | 44 RenderSurfaceImpl* render_target(); |
| 45 const RenderSurfaceImpl* render_target() const; | 45 const RenderSurfaceImpl* render_target() const; |
| 46 | 46 |
| 47 // Returns the rect that encloses the RenderSurfaceImpl including any | 47 // Returns the rect that encloses the RenderSurfaceImpl including any |
| 48 // reflection. | 48 // reflection. |
| 49 gfx::RectF DrawableContentRect() const; | 49 gfx::RectF DrawableContentRect() const; |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 int target_render_surface_layer_index_history_; | 214 int target_render_surface_layer_index_history_; |
| 215 size_t current_layer_index_history_; | 215 size_t current_layer_index_history_; |
| 216 | 216 |
| 217 friend class LayerIterator; | 217 friend class LayerIterator; |
| 218 | 218 |
| 219 DISALLOW_COPY_AND_ASSIGN(RenderSurfaceImpl); | 219 DISALLOW_COPY_AND_ASSIGN(RenderSurfaceImpl); |
| 220 }; | 220 }; |
| 221 | 221 |
| 222 } // namespace cc | 222 } // namespace cc |
| 223 #endif // CC_LAYERS_RENDER_SURFACE_IMPL_H_ | 223 #endif // CC_LAYERS_RENDER_SURFACE_IMPL_H_ |
| OLD | NEW |