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

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

Issue 17034006: Add base namespace to more values in sync and elsewhere. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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/picture.cc ('k') | chrome/browser/policy/policy_map.h » ('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>
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 void FreeResourcesForTile(Tile* tile); 135 void FreeResourcesForTile(Tile* tile);
136 void FreeUnusedResourcesForTile(Tile* tile); 136 void FreeUnusedResourcesForTile(Tile* tile);
137 RasterWorkerPool::Task CreateImageDecodeTask( 137 RasterWorkerPool::Task CreateImageDecodeTask(
138 Tile* tile, skia::LazyPixelRef* pixel_ref); 138 Tile* tile, skia::LazyPixelRef* pixel_ref);
139 RasterTaskMetadata GetRasterTaskMetadata(const Tile& tile) const; 139 RasterTaskMetadata GetRasterTaskMetadata(const Tile& tile) const;
140 RasterWorkerPool::RasterTask CreateRasterTask(Tile* tile); 140 RasterWorkerPool::RasterTask CreateRasterTask(Tile* tile);
141 void DidFinishTileInitialization(Tile* tile); 141 void DidFinishTileInitialization(Tile* tile);
142 void DidTileTreeBinChange(Tile* tile, 142 void DidTileTreeBinChange(Tile* tile,
143 TileManagerBin new_tree_bin, 143 TileManagerBin new_tree_bin,
144 WhichTree tree); 144 WhichTree tree);
145 scoped_ptr<Value> GetMemoryRequirementsAsValue() const; 145 scoped_ptr<base::Value> GetMemoryRequirementsAsValue() const;
146 void AddRequiredTileForActivation(Tile* tile); 146 void AddRequiredTileForActivation(Tile* tile);
147 147
148 TileManagerClient* client_; 148 TileManagerClient* client_;
149 scoped_ptr<ResourcePool> resource_pool_; 149 scoped_ptr<ResourcePool> resource_pool_;
150 scoped_ptr<RasterWorkerPool> raster_worker_pool_; 150 scoped_ptr<RasterWorkerPool> raster_worker_pool_;
151 GlobalStateThatImpactsTilePriority global_state_; 151 GlobalStateThatImpactsTilePriority global_state_;
152 152
153 typedef std::vector<Tile*> TileVector; 153 typedef std::vector<Tile*> TileVector;
154 TileVector tiles_; 154 TileVector tiles_;
155 TileVector tiles_that_need_to_be_rasterized_; 155 TileVector tiles_that_need_to_be_rasterized_;
(...skipping 13 matching lines...) Expand all
169 typedef base::hash_map<uint32_t, RasterWorkerPool::Task> PixelRefTaskMap; 169 typedef base::hash_map<uint32_t, RasterWorkerPool::Task> PixelRefTaskMap;
170 typedef base::hash_map<int, PixelRefTaskMap> LayerPixelRefTaskMap; 170 typedef base::hash_map<int, PixelRefTaskMap> LayerPixelRefTaskMap;
171 LayerPixelRefTaskMap image_decode_tasks_; 171 LayerPixelRefTaskMap image_decode_tasks_;
172 172
173 DISALLOW_COPY_AND_ASSIGN(TileManager); 173 DISALLOW_COPY_AND_ASSIGN(TileManager);
174 }; 174 };
175 175
176 } // namespace cc 176 } // namespace cc
177 177
178 #endif // CC_RESOURCES_TILE_MANAGER_H_ 178 #endif // CC_RESOURCES_TILE_MANAGER_H_
OLDNEW
« no previous file with comments | « cc/resources/picture.cc ('k') | chrome/browser/policy/policy_map.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698