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

Unified Diff: cc/resources/tile.cc

Issue 1127253002: Revert "cc: Remove Tile refcounting and RefCountedManaged." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « cc/resources/tile.h ('k') | cc/resources/tile_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/tile.cc
diff --git a/cc/resources/tile.cc b/cc/resources/tile.cc
index 94e42ec11e1a68ccd4cb59d8dabb4a71a0623c9b..7467d9330ab217627ac9e973af3ea1087809a8e8 100644
--- a/cc/resources/tile.cc
+++ b/cc/resources/tile.cc
@@ -23,7 +23,7 @@ Tile::Tile(TileManager* tile_manager,
int layer_id,
int source_frame_number,
int flags)
- : tile_manager_(tile_manager),
+ : RefCountedManaged<Tile>(tile_manager),
desired_texture_size_(desired_texture_size),
content_rect_(content_rect),
contents_scale_(contents_scale),
@@ -91,9 +91,4 @@ size_t Tile::GPUMemoryUsageInBytes() const {
return 0;
}
-void Tile::Deleter::operator()(Tile* tile) const {
- TileManager* tile_manager = tile->tile_manager_;
- tile_manager->Release(tile);
-}
-
} // namespace cc
« no previous file with comments | « cc/resources/tile.h ('k') | cc/resources/tile_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698