| 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/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 "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 DamageTracker; | 27 class DamageTracker; |
| 28 class FilterOperations; |
| 28 class Occlusion; | 29 class Occlusion; |
| 29 class RenderPassId; | 30 class RenderPassId; |
| 30 class RenderPassSink; | 31 class RenderPassSink; |
| 31 class LayerImpl; | 32 class LayerImpl; |
| 32 class LayerIterator; | 33 class LayerIterator; |
| 33 | 34 |
| 34 struct AppendQuadsData; | 35 struct AppendQuadsData; |
| 35 | 36 |
| 36 class CC_EXPORT RenderSurfaceImpl { | 37 class CC_EXPORT RenderSurfaceImpl { |
| 37 public: | 38 public: |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 bool HasReplica() const; | 144 bool HasReplica() const; |
| 144 const LayerImpl* ReplicaLayer() const; | 145 const LayerImpl* ReplicaLayer() const; |
| 145 LayerImpl* ReplicaLayer(); | 146 LayerImpl* ReplicaLayer(); |
| 146 | 147 |
| 147 LayerImpl* MaskLayer(); | 148 LayerImpl* MaskLayer(); |
| 148 bool HasMask() const; | 149 bool HasMask() const; |
| 149 | 150 |
| 150 LayerImpl* ReplicaMaskLayer(); | 151 LayerImpl* ReplicaMaskLayer(); |
| 151 bool HasReplicaMask() const; | 152 bool HasReplicaMask() const; |
| 152 | 153 |
| 154 const FilterOperations& BackgroundFilters() const; |
| 155 |
| 153 bool HasCopyRequest() const; | 156 bool HasCopyRequest() const; |
| 154 | 157 |
| 155 void ResetPropertyChangedFlag() { surface_property_changed_ = false; } | 158 void ResetPropertyChangedFlag() { surface_property_changed_ = false; } |
| 156 bool SurfacePropertyChanged() const; | 159 bool SurfacePropertyChanged() const; |
| 157 bool SurfacePropertyChangedOnlyFromDescendant() const; | 160 bool SurfacePropertyChangedOnlyFromDescendant() const; |
| 158 | 161 |
| 159 DamageTracker* damage_tracker() const { return damage_tracker_.get(); } | 162 DamageTracker* damage_tracker() const { return damage_tracker_.get(); } |
| 160 | 163 |
| 161 RenderPassId GetRenderPassId(); | 164 RenderPassId GetRenderPassId(); |
| 162 | 165 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 int target_render_surface_layer_index_history_; | 235 int target_render_surface_layer_index_history_; |
| 233 size_t current_layer_index_history_; | 236 size_t current_layer_index_history_; |
| 234 | 237 |
| 235 friend class LayerIterator; | 238 friend class LayerIterator; |
| 236 | 239 |
| 237 DISALLOW_COPY_AND_ASSIGN(RenderSurfaceImpl); | 240 DISALLOW_COPY_AND_ASSIGN(RenderSurfaceImpl); |
| 238 }; | 241 }; |
| 239 | 242 |
| 240 } // namespace cc | 243 } // namespace cc |
| 241 #endif // CC_LAYERS_RENDER_SURFACE_IMPL_H_ | 244 #endif // CC_LAYERS_RENDER_SURFACE_IMPL_H_ |
| OLD | NEW |