Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Side by Side Diff: cc/layers/render_surface_impl.h

Issue 2873593002: Force use of and cache render surface. (Closed)
Patch Set: Calculate damage of |force_render_surface|. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698