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

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

Issue 651503004: cc: Bump up pending tree now tiles order for smoothness mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: format fix Created 6 years, 2 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
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 <deque> 8 #include <deque>
9 #include <queue> 9 #include <queue>
10 #include <set> 10 #include <set>
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 SkPixelRef* pixel_ref); 220 SkPixelRef* pixel_ref);
221 scoped_refptr<RasterTask> CreateRasterTask(Tile* tile); 221 scoped_refptr<RasterTask> CreateRasterTask(Tile* tile);
222 222
223 void RebuildEvictionQueueIfNeeded(); 223 void RebuildEvictionQueueIfNeeded();
224 bool FreeTileResourcesUntilUsageIsWithinLimit(const MemoryUsage& limit, 224 bool FreeTileResourcesUntilUsageIsWithinLimit(const MemoryUsage& limit,
225 MemoryUsage* usage); 225 MemoryUsage* usage);
226 bool FreeTileResourcesWithLowerPriorityUntilUsageIsWithinLimit( 226 bool FreeTileResourcesWithLowerPriorityUntilUsageIsWithinLimit(
227 const MemoryUsage& limit, 227 const MemoryUsage& limit,
228 const TilePriority& oother_priority, 228 const TilePriority& oother_priority,
229 MemoryUsage* usage); 229 MemoryUsage* usage);
230 bool TilePriorityViolatesMemoryPolicy(const TilePriority& priority); 230 bool TileViolatesMemoryPolicy(const Tile* tile);
231 bool IsReadyToActivate() const; 231 bool IsReadyToActivate() const;
232 void CheckIfReadyToActivate(); 232 void CheckIfReadyToActivate();
233 233
234 TileManagerClient* client_; 234 TileManagerClient* client_;
235 scoped_refptr<base::SequencedTaskRunner> task_runner_; 235 scoped_refptr<base::SequencedTaskRunner> task_runner_;
236 ResourcePool* resource_pool_; 236 ResourcePool* resource_pool_;
237 Rasterizer* rasterizer_; 237 Rasterizer* rasterizer_;
238 GlobalStateThatImpactsTilePriority global_state_; 238 GlobalStateThatImpactsTilePriority global_state_;
239 239
240 typedef base::hash_map<Tile::Id, Tile*> TileMap; 240 typedef base::hash_map<Tile::Id, Tile*> TileMap;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 RasterTilePriorityQueue raster_priority_queue_; 273 RasterTilePriorityQueue raster_priority_queue_;
274 EvictionTilePriorityQueue eviction_priority_queue_; 274 EvictionTilePriorityQueue eviction_priority_queue_;
275 bool eviction_priority_queue_is_up_to_date_; 275 bool eviction_priority_queue_is_up_to_date_;
276 276
277 DISALLOW_COPY_AND_ASSIGN(TileManager); 277 DISALLOW_COPY_AND_ASSIGN(TileManager);
278 }; 278 };
279 279
280 } // namespace cc 280 } // namespace cc
281 281
282 #endif // CC_RESOURCES_TILE_MANAGER_H_ 282 #endif // CC_RESOURCES_TILE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698