| 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 LayerImpl* MaskLayer(); | 147 LayerImpl* MaskLayer(); |
| 148 bool HasMask() const; | 148 bool HasMask() const; |
| 149 | 149 |
| 150 const FilterOperations& Filters() const; | 150 const FilterOperations& Filters() const; |
| 151 const FilterOperations& BackgroundFilters() const; | 151 const FilterOperations& BackgroundFilters() const; |
| 152 gfx::PointF FiltersOrigin() const; | 152 gfx::PointF FiltersOrigin() const; |
| 153 gfx::Transform SurfaceScale() const; | 153 gfx::Transform SurfaceScale() const; |
| 154 | 154 |
| 155 bool HasCopyRequest() const; | 155 bool HasCopyRequest() const; |
| 156 | 156 |
| 157 bool ShouldCacheRenderSurface() const; |
| 158 |
| 157 void ResetPropertyChangedFlags(); | 159 void ResetPropertyChangedFlags(); |
| 158 bool SurfacePropertyChanged() const; | 160 bool SurfacePropertyChanged() const; |
| 159 bool SurfacePropertyChangedOnlyFromDescendant() const; | 161 bool SurfacePropertyChangedOnlyFromDescendant() const; |
| 160 bool AncestorPropertyChanged() const; | 162 bool AncestorPropertyChanged() const; |
| 161 void NoteAncestorPropertyChanged(); | 163 void NoteAncestorPropertyChanged(); |
| 164 bool HasDamageFromeContributingContent() const; |
| 162 | 165 |
| 163 DamageTracker* damage_tracker() const { return damage_tracker_.get(); } | 166 DamageTracker* damage_tracker() const { return damage_tracker_.get(); } |
| 164 gfx::Rect GetDamageRect() const; | 167 gfx::Rect GetDamageRect() const; |
| 165 | 168 |
| 166 std::unique_ptr<RenderPass> CreateRenderPass(); | 169 std::unique_ptr<RenderPass> CreateRenderPass(); |
| 167 void AppendQuads(DrawMode draw_mode, | 170 void AppendQuads(DrawMode draw_mode, |
| 168 RenderPass* render_pass, | 171 RenderPass* render_pass, |
| 169 AppendQuadsData* append_quads_data); | 172 AppendQuadsData* append_quads_data); |
| 170 | 173 |
| 171 int TransformTreeIndex() const; | 174 int TransformTreeIndex() const; |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 // surface, and that ignores outside occlusion. This can point to itself. | 235 // surface, and that ignores outside occlusion. This can point to itself. |
| 233 const RenderSurfaceImpl* nearest_occlusion_immune_ancestor_; | 236 const RenderSurfaceImpl* nearest_occlusion_immune_ancestor_; |
| 234 | 237 |
| 235 std::unique_ptr<DamageTracker> damage_tracker_; | 238 std::unique_ptr<DamageTracker> damage_tracker_; |
| 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 |