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

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') | cc/resources/tile_manager.cc » ('J')
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..095f80fc6691f5c1e27618ceff25a5e3c42047a1 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,
@@ -176,6 +179,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') | cc/resources/tile_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698