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

Unified Diff: cc/resources/tile.cc

Issue 18581004: cc: Remove tile ref counting in tile manager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ut compile fix Created 7 years, 5 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 6d557fe45eebbc138bb4f2948ccb484d7024f1c1..d6a50e6d268fc8fbf8938c36c7888f14da45ea26 100644
--- a/cc/resources/tile.cc
+++ b/cc/resources/tile.cc
@@ -10,6 +10,8 @@
namespace cc {
+Tile::Id Tile::s_next_id_ = 0;
+
Tile::Tile(TileManager* tile_manager,
PicturePileImpl* picture_pile,
gfx::Size tile_size,
@@ -26,7 +28,8 @@ Tile::Tile(TileManager* tile_manager,
opaque_rect_(opaque_rect),
layer_id_(layer_id),
source_frame_number_(source_frame_number),
- can_use_lcd_text_(can_use_lcd_text) {
+ can_use_lcd_text_(can_use_lcd_text),
+ id_(s_next_id_++) {
set_picture_pile(picture_pile);
tile_manager_->RegisterTile(this);
}
« 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