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

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

Issue 19305002: Merge 210098 "cc: Eliminate tile.h's dependency on tile_manager.h" (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1547/src/
Patch Set: 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 | Annotate | Revision Log
« no previous file with comments | « cc/resources/tile.h ('k') | cc/resources/tile_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <queue> 8 #include <queue>
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/containers/hash_tables.h" 12 #include "base/containers/hash_tables.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/values.h" 14 #include "base/values.h"
15 #include "cc/debug/rendering_stats_instrumentation.h" 15 #include "cc/debug/rendering_stats_instrumentation.h"
16 #include "cc/resources/memory_history.h" 16 #include "cc/resources/memory_history.h"
17 #include "cc/resources/picture_pile_impl.h" 17 #include "cc/resources/picture_pile_impl.h"
18 #include "cc/resources/raster_worker_pool.h" 18 #include "cc/resources/raster_worker_pool.h"
19 #include "cc/resources/resource_pool.h" 19 #include "cc/resources/resource_pool.h"
20 #include "cc/resources/tile_priority.h"
21 20
22 namespace cc { 21 namespace cc {
23 class ResourceProvider; 22 class ResourceProvider;
24 class Tile; 23 class Tile;
25 class TileVersion; 24 class TileVersion;
26 25
27 class CC_EXPORT TileManagerClient { 26 class CC_EXPORT TileManagerClient {
28 public: 27 public:
29 virtual void DidInitializeVisibleTile() = 0; 28 virtual void DidInitializeVisibleTile() = 0;
30 virtual void NotifyReadyToActivate() = 0; 29 virtual void NotifyReadyToActivate() = 0;
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 void AssignBinsToTiles(); 135 void AssignBinsToTiles();
137 void SortTiles(); 136 void SortTiles();
138 RasterMode DetermineRasterMode(const Tile* tile) const; 137 RasterMode DetermineRasterMode(const Tile* tile) const;
139 void CleanUpUnusedImageDecodeTasks(); 138 void CleanUpUnusedImageDecodeTasks();
140 void AssignGpuMemoryToTiles(); 139 void AssignGpuMemoryToTiles();
141 void FreeResourceForTile(Tile* tile, RasterMode mode); 140 void FreeResourceForTile(Tile* tile, RasterMode mode);
142 void FreeResourcesForTile(Tile* tile); 141 void FreeResourcesForTile(Tile* tile);
143 void FreeUnusedResourcesForTile(Tile* tile); 142 void FreeUnusedResourcesForTile(Tile* tile);
144 RasterWorkerPool::Task CreateImageDecodeTask( 143 RasterWorkerPool::Task CreateImageDecodeTask(
145 Tile* tile, skia::LazyPixelRef* pixel_ref); 144 Tile* tile, skia::LazyPixelRef* pixel_ref);
146 RasterTaskMetadata GetRasterTaskMetadata(const Tile& tile) const;
147 RasterWorkerPool::RasterTask CreateRasterTask(Tile* tile); 145 RasterWorkerPool::RasterTask CreateRasterTask(Tile* tile);
148 void DidFinishTileInitialization(Tile* tile); 146 void DidFinishTileInitialization(Tile* tile);
149 void DidTileTreeBinChange(Tile* tile, 147 void DidTileTreeBinChange(Tile* tile,
150 TileManagerBin new_tree_bin, 148 TileManagerBin new_tree_bin,
151 WhichTree tree); 149 WhichTree tree);
152 scoped_ptr<base::Value> GetMemoryRequirementsAsValue() const; 150 scoped_ptr<base::Value> GetMemoryRequirementsAsValue() const;
153 void AddRequiredTileForActivation(Tile* tile); 151 void AddRequiredTileForActivation(Tile* tile);
154 152
155 TileManagerClient* client_; 153 TileManagerClient* client_;
156 scoped_ptr<ResourcePool> resource_pool_; 154 scoped_ptr<ResourcePool> resource_pool_;
(...skipping 20 matching lines...) Expand all
177 typedef base::hash_map<uint32_t, RasterWorkerPool::Task> PixelRefTaskMap; 175 typedef base::hash_map<uint32_t, RasterWorkerPool::Task> PixelRefTaskMap;
178 typedef base::hash_map<int, PixelRefTaskMap> LayerPixelRefTaskMap; 176 typedef base::hash_map<int, PixelRefTaskMap> LayerPixelRefTaskMap;
179 LayerPixelRefTaskMap image_decode_tasks_; 177 LayerPixelRefTaskMap image_decode_tasks_;
180 178
181 DISALLOW_COPY_AND_ASSIGN(TileManager); 179 DISALLOW_COPY_AND_ASSIGN(TileManager);
182 }; 180 };
183 181
184 } // namespace cc 182 } // namespace cc
185 183
186 #endif // CC_RESOURCES_TILE_MANAGER_H_ 184 #endif // CC_RESOURCES_TILE_MANAGER_H_
OLDNEW
« no previous file with comments | « cc/resources/tile.h ('k') | cc/resources/tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698