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

Unified Diff: cc/layers/picture_layer_impl.cc

Issue 279543003: cc: Remove layers that are not drawn from tile manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cc/resources/tile_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_layer_impl.cc
diff --git a/cc/layers/picture_layer_impl.cc b/cc/layers/picture_layer_impl.cc
index bd3b9dc590e413bf998aa6325f95d8fd36386239..2b9429470b93c05c3ba1a115c81ffd1f5630065c 100644
--- a/cc/layers/picture_layer_impl.cc
+++ b/cc/layers/picture_layer_impl.cc
@@ -354,10 +354,16 @@ void PictureLayerImpl::AppendQuads(QuadSink* quad_sink,
}
void PictureLayerImpl::DidUnregisterLayer() {
+ TRACE_EVENT0("cc", "PictureLayerImpl::DidUnregisterLayer");
+
layer_needs_to_register_itself_ = true;
+ RemoveAllTilings();
}
void PictureLayerImpl::UpdateTilePriorities() {
+ TRACE_EVENT0("cc", "PictureLayerImpl::UpdateTilePriorities");
+
+ DCHECK(IsDrawnRenderSurfaceLayerListMember());
DCHECK(!needs_post_commit_initialization_);
CHECK(should_update_tile_priorities_);
« no previous file with comments | « no previous file | cc/resources/tile_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698