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

Side by Side 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, 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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_RESOURCES_TILE_H_ 5 #ifndef CC_RESOURCES_TILE_H_
6 #define CC_RESOURCES_TILE_H_ 6 #define CC_RESOURCES_TILE_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
(...skipping 14 matching lines...) Expand all
25 Tile(TileManager* tile_manager, 25 Tile(TileManager* tile_manager,
26 PicturePileImpl* picture_pile, 26 PicturePileImpl* picture_pile,
27 gfx::Size tile_size, 27 gfx::Size tile_size,
28 gfx::Rect content_rect, 28 gfx::Rect content_rect,
29 gfx::Rect opaque_rect, 29 gfx::Rect opaque_rect,
30 float contents_scale, 30 float contents_scale,
31 int layer_id, 31 int layer_id,
32 int source_frame_number, 32 int source_frame_number,
33 bool can_use_lcd_text); 33 bool can_use_lcd_text);
34 34
35 uint64 id() const {
36 return id_;
37 }
38
35 PicturePileImpl* picture_pile() { 39 PicturePileImpl* picture_pile() {
36 return picture_pile_.get(); 40 return picture_pile_.get();
37 } 41 }
38 42
39 const PicturePileImpl* picture_pile() const { 43 const PicturePileImpl* picture_pile() const {
40 return picture_pile_.get(); 44 return picture_pile_.get();
41 } 45 }
42 46
43 const TilePriority& priority(WhichTree tree) const { 47 const TilePriority& priority(WhichTree tree) const {
44 return priority_[tree]; 48 return priority_[tree];
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 gfx::Rect content_rect_; 138 gfx::Rect content_rect_;
135 float contents_scale_; 139 float contents_scale_;
136 gfx::Rect opaque_rect_; 140 gfx::Rect opaque_rect_;
137 141
138 TilePriority priority_[NUM_BIN_PRIORITIES]; 142 TilePriority priority_[NUM_BIN_PRIORITIES];
139 ManagedTileState managed_state_; 143 ManagedTileState managed_state_;
140 int layer_id_; 144 int layer_id_;
141 int source_frame_number_; 145 int source_frame_number_;
142 bool can_use_lcd_text_; 146 bool can_use_lcd_text_;
143 147
148 uint64 id_;
149 static uint64 s_next_id_;
150
144 DISALLOW_COPY_AND_ASSIGN(Tile); 151 DISALLOW_COPY_AND_ASSIGN(Tile);
145 }; 152 };
146 153
147 } // namespace cc 154 } // namespace cc
148 155
149 #endif // CC_RESOURCES_TILE_H_ 156 #endif // CC_RESOURCES_TILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698