| 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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 | 153 |
| 154 bool HasCopyRequest() const; | 154 bool HasCopyRequest() const; |
| 155 | 155 |
| 156 void ResetPropertyChangedFlags(); | 156 void ResetPropertyChangedFlags(); |
| 157 bool SurfacePropertyChanged() const; | 157 bool SurfacePropertyChanged() const; |
| 158 bool SurfacePropertyChangedOnlyFromDescendant() const; | 158 bool SurfacePropertyChangedOnlyFromDescendant() const; |
| 159 bool AncestorPropertyChanged() const; | 159 bool AncestorPropertyChanged() const; |
| 160 void NoteAncestorPropertyChanged(); | 160 void NoteAncestorPropertyChanged(); |
| 161 | 161 |
| 162 DamageTracker* damage_tracker() const { return damage_tracker_.get(); } | 162 DamageTracker* damage_tracker() const { return damage_tracker_.get(); } |
| 163 gfx::Rect GetDamageRect(); | 163 gfx::Rect GetDamageRect() const; |
| 164 | 164 |
| 165 int GetRenderPassId(); | 165 int GetRenderPassId(); |
| 166 | 166 |
| 167 std::unique_ptr<RenderPass> CreateRenderPass(); | 167 std::unique_ptr<RenderPass> CreateRenderPass(); |
| 168 void AppendQuads(RenderPass* render_pass, AppendQuadsData* append_quads_data); | 168 void AppendQuads(RenderPass* render_pass, AppendQuadsData* append_quads_data); |
| 169 | 169 |
| 170 int TransformTreeIndex() const; | 170 int TransformTreeIndex() const; |
| 171 int ClipTreeIndex() const; | 171 int ClipTreeIndex() const; |
| 172 | 172 |
| 173 void set_effect_tree_index(int index) { effect_tree_index_ = index; } | 173 void set_effect_tree_index(int index) { effect_tree_index_ = index; } |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 // surface, and that ignores outside occlusion. This can point to itself. | 231 // surface, and that ignores outside occlusion. This can point to itself. |
| 232 const RenderSurfaceImpl* nearest_occlusion_immune_ancestor_; | 232 const RenderSurfaceImpl* nearest_occlusion_immune_ancestor_; |
| 233 | 233 |
| 234 std::unique_ptr<DamageTracker> damage_tracker_; | 234 std::unique_ptr<DamageTracker> damage_tracker_; |
| 235 | 235 |
| 236 DISALLOW_COPY_AND_ASSIGN(RenderSurfaceImpl); | 236 DISALLOW_COPY_AND_ASSIGN(RenderSurfaceImpl); |
| 237 }; | 237 }; |
| 238 | 238 |
| 239 } // namespace cc | 239 } // namespace cc |
| 240 #endif // CC_LAYERS_RENDER_SURFACE_IMPL_H_ | 240 #endif // CC_LAYERS_RENDER_SURFACE_IMPL_H_ |
| OLD | NEW |