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

Unified Diff: cc/resources/tile.h

Issue 18581004: cc: Remove tile ref counting in tile manager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 6 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.cc » ('j') | cc/resources/tile_manager.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/tile.h
diff --git a/cc/resources/tile.h b/cc/resources/tile.h
index 497aff71de8cca4b3ed377d6d3dd8e1bf9598730..4920516f07b4b799d8359aae7aaf0bf64b645bed 100644
--- a/cc/resources/tile.h
+++ b/cc/resources/tile.h
@@ -32,6 +32,10 @@ class CC_EXPORT Tile : public base::RefCounted<Tile> {
int source_frame_number,
bool can_use_lcd_text);
+ uint64 id() const {
+ return id_;
+ }
+
PicturePileImpl* picture_pile() {
return picture_pile_.get();
}
@@ -151,6 +155,8 @@ class CC_EXPORT Tile : public base::RefCounted<Tile> {
int layer_id_;
int source_frame_number_;
bool can_use_lcd_text_;
reveman 2013/07/03 00:32:47 nit: maybe a blank line here.
vmpstr 2013/07/03 19:08:04 Done.
+ uint64 id_;
+ static uint64 s_next_id_;
DISALLOW_COPY_AND_ASSIGN(Tile);
};
« no previous file with comments | « no previous file | cc/resources/tile.cc » ('j') | cc/resources/tile_manager.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698