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

Unified Diff: cc/layers/render_surface.h

Issue 250803013: Don't clear render surfaces unnecessarily. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make the bots happy. Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: cc/layers/render_surface.h
diff --git a/cc/layers/render_surface.h b/cc/layers/render_surface.h
index ace787a8d92e8d30b0b0eeb644634e03aa6a7704..4da8d23794268198bd5047b00ca789c09bdea881 100644
--- a/cc/layers/render_surface.h
+++ b/cc/layers/render_surface.h
@@ -101,7 +101,7 @@ class CC_EXPORT RenderSurface {
contributes_to_drawn_surface_ = contributes_to_drawn_surface;
}
- RenderSurfaceLayerList& layer_list() { return layer_list_; }
+ LayerList& layer_list() { return layer_list_; }
// A no-op since DelegatedRendererLayers on the main thread don't have any
// RenderPasses so they can't contribute to a surface.
void AddContributingDelegatedRenderPassLayer(Layer* layer) {}
@@ -113,6 +113,8 @@ class CC_EXPORT RenderSurface {
return nearest_occlusion_immune_ancestor_;
}
+ void ClearLayerLists();
+
private:
friend class LayerIterator<Layer>;
@@ -136,7 +138,7 @@ class CC_EXPORT RenderSurface {
// Uses the space of the surface's target surface.
gfx::Rect clip_rect_;
- RenderSurfaceLayerList layer_list_;
+ LayerList layer_list_;
// The nearest ancestor target surface that will contain the contents of this
// surface, and that ignores outside occlusion. This can point to itself.

Powered by Google App Engine
This is Rietveld 408576698