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

Unified Diff: cc/resources/tile.cc

Issue 19308003: Merge 210713 "cc: Remove tile ref counting in tile manager." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1547/src/
Patch Set: 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
===================================================================
--- cc/resources/tile.cc (revision 211727)
+++ cc/resources/tile.cc (working copy)
@@ -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,
@@ -24,7 +26,8 @@
contents_scale_(contents_scale),
opaque_rect_(opaque_rect),
layer_id_(layer_id),
- source_frame_number_(source_frame_number) {
+ source_frame_number_(source_frame_number),
+ 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