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

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

Issue 285373003: Reland "cc: Remove layers that are not drawn from tile manager." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
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_MANAGER_H_ 5 #ifndef CC_RESOURCES_TILE_MANAGER_H_
6 #define CC_RESOURCES_TILE_MANAGER_H_ 6 #define CC_RESOURCES_TILE_MANAGER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <queue> 9 #include <queue>
10 #include <set> 10 #include <set>
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 } 279 }
280 280
281 void FreeResourceForTile(Tile* tile, RasterMode mode); 281 void FreeResourceForTile(Tile* tile, RasterMode mode);
282 void FreeResourcesForTile(Tile* tile); 282 void FreeResourcesForTile(Tile* tile);
283 void FreeUnusedResourcesForTile(Tile* tile); 283 void FreeUnusedResourcesForTile(Tile* tile);
284 scoped_refptr<ImageDecodeTask> CreateImageDecodeTask(Tile* tile, 284 scoped_refptr<ImageDecodeTask> CreateImageDecodeTask(Tile* tile,
285 SkPixelRef* pixel_ref); 285 SkPixelRef* pixel_ref);
286 scoped_refptr<RasterTask> CreateRasterTask(Tile* tile); 286 scoped_refptr<RasterTask> CreateRasterTask(Tile* tile);
287 scoped_ptr<base::Value> GetMemoryRequirementsAsValue() const; 287 scoped_ptr<base::Value> GetMemoryRequirementsAsValue() const;
288 void UpdatePrioritizedTileSetIfNeeded(); 288 void UpdatePrioritizedTileSetIfNeeded();
289 void CleanUpLayers();
289 290
290 TileManagerClient* client_; 291 TileManagerClient* client_;
291 ResourcePool* resource_pool_; 292 ResourcePool* resource_pool_;
292 scoped_ptr<RasterizerDelegate> rasterizer_delegate_; 293 scoped_ptr<RasterizerDelegate> rasterizer_delegate_;
293 GlobalStateThatImpactsTilePriority global_state_; 294 GlobalStateThatImpactsTilePriority global_state_;
294 295
295 typedef base::hash_map<Tile::Id, Tile*> TileMap; 296 typedef base::hash_map<Tile::Id, Tile*> TileMap;
296 TileMap tiles_; 297 TileMap tiles_;
297 298
298 PrioritizedTileSet prioritized_tiles_; 299 PrioritizedTileSet prioritized_tiles_;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 std::vector<scoped_refptr<RasterTask> > orphan_raster_tasks_; 338 std::vector<scoped_refptr<RasterTask> > orphan_raster_tasks_;
338 339
339 std::vector<PictureLayerImpl*> layers_; 340 std::vector<PictureLayerImpl*> layers_;
340 341
341 DISALLOW_COPY_AND_ASSIGN(TileManager); 342 DISALLOW_COPY_AND_ASSIGN(TileManager);
342 }; 343 };
343 344
344 } // namespace cc 345 } // namespace cc
345 346
346 #endif // CC_RESOURCES_TILE_MANAGER_H_ 347 #endif // CC_RESOURCES_TILE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698