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

Unified Diff: cc/tiles/tile.cc

Issue 2612413003: Clean up tile deletion (Closed)
Patch Set: "Fix Tile* comparison in tests" Created 3 years, 11 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 | « cc/tiles/tile.h ('k') | cc/tiles/tile_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tiles/tile.cc
diff --git a/cc/tiles/tile.cc b/cc/tiles/tile.cc
index 0dbee1106953fdf1159f90d97e937084a4de772e..a40751fb8735157dc3460d3dbe2fdd0ed97fd0c2 100644
--- a/cc/tiles/tile.cc
+++ b/cc/tiles/tile.cc
@@ -43,6 +43,7 @@ Tile::~Tile() {
TRACE_EVENT_OBJECT_DELETED_WITH_ID(
TRACE_DISABLED_BY_DEFAULT("cc.debug"),
"cc::Tile", this);
+ tile_manager_->Release(this);
}
void Tile::AsValueInto(base::trace_event::TracedValue* value) const {
@@ -83,8 +84,4 @@ size_t Tile::GPUMemoryUsageInBytes() const {
return 0;
}
-void Tile::Deleter::operator()(Tile* tile) const {
- tile->tile_manager_->Release(tile);
-}
-
} // namespace cc
« no previous file with comments | « cc/tiles/tile.h ('k') | cc/tiles/tile_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698