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

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

Issue 2873593002: Force use of and cache render surface. (Closed)
Patch Set: Fix for comments in patch 4. Created 3 years, 6 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 CacheRenderSurface() 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 HasDamageFromeContributingContent() 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 std::unique_ptr<RenderPass> CreateRenderPass(); 168 std::unique_ptr<RenderPass> CreateRenderPass();
166 void AppendQuads(RenderPass* render_pass, AppendQuadsData* append_quads_data); 169 void AppendQuads(RenderPass* render_pass, AppendQuadsData* append_quads_data);
167 170
168 int TransformTreeIndex() const; 171 int TransformTreeIndex() const;
169 int ClipTreeIndex() const; 172 int ClipTreeIndex() const;
170 173
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 // surface, and that ignores outside occlusion. This can point to itself. 232 // surface, and that ignores outside occlusion. This can point to itself.
230 const RenderSurfaceImpl* nearest_occlusion_immune_ancestor_; 233 const RenderSurfaceImpl* nearest_occlusion_immune_ancestor_;
231 234
232 std::unique_ptr<DamageTracker> damage_tracker_; 235 std::unique_ptr<DamageTracker> damage_tracker_;
233 236
234 DISALLOW_COPY_AND_ASSIGN(RenderSurfaceImpl); 237 DISALLOW_COPY_AND_ASSIGN(RenderSurfaceImpl);
235 }; 238 };
236 239
237 } // namespace cc 240 } // namespace cc
238 #endif // CC_LAYERS_RENDER_SURFACE_IMPL_H_ 241 #endif // CC_LAYERS_RENDER_SURFACE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698