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