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

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: review 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
Index: cc/resources/tile.h
diff --git a/cc/resources/tile.h b/cc/resources/tile.h
index 625f95cbc86b46b10bf45dcb0f8444a29ea491e0..31c94e0fab757d93ebd7346bee727539bb12d7ad 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();
}
@@ -141,6 +145,9 @@ class CC_EXPORT Tile : public base::RefCounted<Tile> {
int source_frame_number_;
bool can_use_lcd_text_;
+ uint64 id_;
+ static uint64 s_next_id_;
+
DISALLOW_COPY_AND_ASSIGN(Tile);
};

Powered by Google App Engine
This is Rietveld 408576698