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

Unified Diff: cc/resources/tile_manager.h

Issue 23757024: cc: Speed up CleanUpImageDecodeTasks a bit. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/tile_manager.h
diff --git a/cc/resources/tile_manager.h b/cc/resources/tile_manager.h
index 1e5d7ff1cd5dbce91bfaceabc961b4a1500bcb66..9d86f05918bcdfd726e2940b8092685fad15b205 100644
--- a/cc/resources/tile_manager.h
+++ b/cc/resources/tile_manager.h
@@ -93,6 +93,9 @@ class CC_EXPORT TileManager : public RasterWorkerPoolClient {
++resources_releasable_;
}
}
+ RasterWorkerPool* RasterWorkerPoolForTesting() {
+ return raster_worker_pool_.get();
+ }
protected:
TileManager(TileManagerClient* client,
@@ -138,7 +141,6 @@ class CC_EXPORT TileManager : public RasterWorkerPoolClient {
bool was_canceled);
RasterMode DetermineRasterMode(const Tile* tile) const;
- void CleanUpUnusedImageDecodeTasks();
void FreeResourceForTile(Tile* tile, RasterMode mode);
void FreeResourcesForTile(Tile* tile);
void FreeUnusedResourcesForTile(Tile* tile);
@@ -176,6 +178,9 @@ class CC_EXPORT TileManager : public RasterWorkerPoolClient {
typedef base::hash_map<int, PixelRefTaskMap> LayerPixelRefTaskMap;
LayerPixelRefTaskMap image_decode_tasks_;
+ typedef base::hash_map<int, int> LayerCountMap;
+ LayerCountMap used_layer_counts_;
+
RasterTaskCompletionStats update_visible_tiles_stats_;
DISALLOW_COPY_AND_ASSIGN(TileManager);
« no previous file with comments | « no previous file | cc/resources/tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698