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

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

Issue 1587283002: Switch cc to std::unordered_*. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@unordered-map
Patch Set: Created 4 years, 11 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_TILES_TILE_MANAGER_H_ 5 #ifndef CC_TILES_TILE_MANAGER_H_
6 #define CC_TILES_TILE_MANAGER_H_ 6 #define CC_TILES_TILE_MANAGER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <set> 11 #include <set>
12 #include <unordered_map>
12 #include <utility> 13 #include <utility>
13 #include <vector> 14 #include <vector>
14 15
15 #include "base/containers/hash_tables.h"
16 #include "base/macros.h" 16 #include "base/macros.h"
17 #include "base/memory/scoped_ptr.h" 17 #include "base/memory/scoped_ptr.h"
18 #include "base/values.h" 18 #include "base/values.h"
19 #include "cc/base/unique_notifier.h" 19 #include "cc/base/unique_notifier.h"
20 #include "cc/playback/display_list_raster_source.h" 20 #include "cc/playback/display_list_raster_source.h"
21 #include "cc/raster/tile_task_runner.h" 21 #include "cc/raster/tile_task_runner.h"
22 #include "cc/resources/memory_history.h" 22 #include "cc/resources/memory_history.h"
23 #include "cc/resources/resource_pool.h" 23 #include "cc/resources/resource_pool.h"
24 #include "cc/tiles/eviction_tile_priority_queue.h" 24 #include "cc/tiles/eviction_tile_priority_queue.h"
25 #include "cc/tiles/image_decode_controller.h" 25 #include "cc/tiles/image_decode_controller.h"
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 ScheduledTasksStateAsValue() const; 285 ScheduledTasksStateAsValue() const;
286 286
287 TileManagerClient* client_; 287 TileManagerClient* client_;
288 scoped_refptr<base::SequencedTaskRunner> task_runner_; 288 scoped_refptr<base::SequencedTaskRunner> task_runner_;
289 ResourcePool* resource_pool_; 289 ResourcePool* resource_pool_;
290 TileTaskRunner* tile_task_runner_; 290 TileTaskRunner* tile_task_runner_;
291 GlobalStateThatImpactsTilePriority global_state_; 291 GlobalStateThatImpactsTilePriority global_state_;
292 size_t scheduled_raster_task_limit_; 292 size_t scheduled_raster_task_limit_;
293 const bool use_partial_raster_; 293 const bool use_partial_raster_;
294 294
295 typedef base::hash_map<Tile::Id, Tile*> TileMap; 295 typedef std::unordered_map<Tile::Id, Tile*> TileMap;
296 TileMap tiles_; 296 TileMap tiles_;
297 297
298 bool all_tiles_that_need_to_be_rasterized_are_scheduled_; 298 bool all_tiles_that_need_to_be_rasterized_are_scheduled_;
299 MemoryHistory::Entry memory_stats_from_last_assign_; 299 MemoryHistory::Entry memory_stats_from_last_assign_;
300 300
301 bool did_check_for_completed_tasks_since_last_schedule_tasks_; 301 bool did_check_for_completed_tasks_since_last_schedule_tasks_;
302 bool did_oom_on_last_assign_; 302 bool did_oom_on_last_assign_;
303 303
304 ImageDecodeController image_decode_controller_; 304 ImageDecodeController image_decode_controller_;
305 305
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 uint64_t next_tile_id_; 337 uint64_t next_tile_id_;
338 338
339 base::WeakPtrFactory<TileManager> task_set_finished_weak_ptr_factory_; 339 base::WeakPtrFactory<TileManager> task_set_finished_weak_ptr_factory_;
340 340
341 DISALLOW_COPY_AND_ASSIGN(TileManager); 341 DISALLOW_COPY_AND_ASSIGN(TileManager);
342 }; 342 };
343 343
344 } // namespace cc 344 } // namespace cc
345 345
346 #endif // CC_TILES_TILE_MANAGER_H_ 346 #endif // CC_TILES_TILE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698