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

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

Issue 17625002: cc: Eliminate tile.h's dependency on tile_manager.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
« 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 void AssignBinsToTiles(); 124 void AssignBinsToTiles();
126 void SortTiles(); 125 void SortTiles();
127 RasterMode DetermineRasterMode(const Tile* tile) const; 126 RasterMode DetermineRasterMode(const Tile* tile) const;
128 void CleanUpUnusedImageDecodeTasks(); 127 void CleanUpUnusedImageDecodeTasks();
129 void AssignGpuMemoryToTiles(); 128 void AssignGpuMemoryToTiles();
130 void FreeResourceForTile(Tile* tile, RasterMode mode); 129 void FreeResourceForTile(Tile* tile, RasterMode mode);
131 void FreeResourcesForTile(Tile* tile); 130 void FreeResourcesForTile(Tile* tile);
132 void FreeUnusedResourcesForTile(Tile* tile); 131 void FreeUnusedResourcesForTile(Tile* tile);
133 RasterWorkerPool::Task CreateImageDecodeTask( 132 RasterWorkerPool::Task CreateImageDecodeTask(
134 Tile* tile, skia::LazyPixelRef* pixel_ref); 133 Tile* tile, skia::LazyPixelRef* pixel_ref);
135 RasterTaskMetadata GetRasterTaskMetadata(const Tile& tile) const;
136 RasterWorkerPool::RasterTask CreateRasterTask(Tile* tile); 134 RasterWorkerPool::RasterTask CreateRasterTask(Tile* tile);
137 void DidFinishTileInitialization(Tile* tile); 135 void DidFinishTileInitialization(Tile* tile);
138 void DidTileTreeBinChange(Tile* tile, 136 void DidTileTreeBinChange(Tile* tile,
139 TileManagerBin new_tree_bin, 137 TileManagerBin new_tree_bin,
140 WhichTree tree); 138 WhichTree tree);
141 scoped_ptr<base::Value> GetMemoryRequirementsAsValue() const; 139 scoped_ptr<base::Value> GetMemoryRequirementsAsValue() const;
142 void AddRequiredTileForActivation(Tile* tile); 140 void AddRequiredTileForActivation(Tile* tile);
143 141
144 TileManagerClient* client_; 142 TileManagerClient* client_;
145 scoped_ptr<ResourcePool> resource_pool_; 143 scoped_ptr<ResourcePool> resource_pool_;
(...skipping 18 matching lines...) Expand all
164 typedef base::hash_map<uint32_t, RasterWorkerPool::Task> PixelRefTaskMap; 162 typedef base::hash_map<uint32_t, RasterWorkerPool::Task> PixelRefTaskMap;
165 typedef base::hash_map<int, PixelRefTaskMap> LayerPixelRefTaskMap; 163 typedef base::hash_map<int, PixelRefTaskMap> LayerPixelRefTaskMap;
166 LayerPixelRefTaskMap image_decode_tasks_; 164 LayerPixelRefTaskMap image_decode_tasks_;
167 165
168 DISALLOW_COPY_AND_ASSIGN(TileManager); 166 DISALLOW_COPY_AND_ASSIGN(TileManager);
169 }; 167 };
170 168
171 } // namespace cc 169 } // namespace cc
172 170
173 #endif // CC_RESOURCES_TILE_MANAGER_H_ 171 #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