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

Side by Side Diff: cc/resources/tile.h

Issue 366113002: cc: Do not cleanup tiles with raster tasks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use std::vector for released tiles. Created 6 years, 4 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 // Methods called by by tile manager. 161 // Methods called by by tile manager.
162 Tile(TileManager* tile_manager, 162 Tile(TileManager* tile_manager,
163 PicturePileImpl* picture_pile, 163 PicturePileImpl* picture_pile,
164 const gfx::Size& tile_size, 164 const gfx::Size& tile_size,
165 const gfx::Rect& content_rect, 165 const gfx::Rect& content_rect,
166 const gfx::Rect& opaque_rect, 166 const gfx::Rect& opaque_rect,
167 float contents_scale, 167 float contents_scale,
168 int layer_id, 168 int layer_id,
169 int source_frame_number, 169 int source_frame_number,
170 int flags); 170 int flags);
171
reveman 2014/08/01 14:13:14 Nit: no need to add this blank line
sohanjg 2014/08/04 06:25:03 Done.
171 ~Tile(); 172 ~Tile();
172 173
173 ManagedTileState& managed_state() { return managed_state_; } 174 ManagedTileState& managed_state() { return managed_state_; }
174 const ManagedTileState& managed_state() const { return managed_state_; } 175 const ManagedTileState& managed_state() const { return managed_state_; }
175 RasterMode DetermineRasterModeForResolution(TileResolution resolution) const; 176 RasterMode DetermineRasterModeForResolution(TileResolution resolution) const;
176 177
178 bool HasRasterTask() const;
179
177 TileManager* tile_manager_; 180 TileManager* tile_manager_;
178 scoped_refptr<PicturePileImpl> picture_pile_; 181 scoped_refptr<PicturePileImpl> picture_pile_;
179 gfx::Rect tile_size_; 182 gfx::Rect tile_size_;
180 gfx::Rect content_rect_; 183 gfx::Rect content_rect_;
181 float contents_scale_; 184 float contents_scale_;
182 gfx::Rect opaque_rect_; 185 gfx::Rect opaque_rect_;
183 bool is_occluded_[NUM_TREES]; 186 bool is_occluded_[NUM_TREES];
184 187
185 TilePriority priority_[NUM_TREES]; 188 TilePriority priority_[NUM_TREES];
186 ManagedTileState managed_state_; 189 ManagedTileState managed_state_;
187 int layer_id_; 190 int layer_id_;
188 int source_frame_number_; 191 int source_frame_number_;
189 int flags_; 192 int flags_;
190 193
191 Id id_; 194 Id id_;
192 static Id s_next_id_; 195 static Id s_next_id_;
193 196
194 DISALLOW_COPY_AND_ASSIGN(Tile); 197 DISALLOW_COPY_AND_ASSIGN(Tile);
195 }; 198 };
196 199
197 } // namespace cc 200 } // namespace cc
198 201
199 #endif // CC_RESOURCES_TILE_H_ 202 #endif // CC_RESOURCES_TILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698