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

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

Issue 734063004: Update from https://crrev.com/304418 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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/task_graph_runner_unittest.cc ('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 <deque> 8 #include <deque>
9 #include <queue> 9 #include <queue>
10 #include <set> 10 #include <set>
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 TileManagerClient* client, 101 TileManagerClient* client,
102 base::SequencedTaskRunner* task_runner, 102 base::SequencedTaskRunner* task_runner,
103 ResourcePool* resource_pool, 103 ResourcePool* resource_pool,
104 Rasterizer* rasterizer, 104 Rasterizer* rasterizer,
105 RenderingStatsInstrumentation* rendering_stats_instrumentation, 105 RenderingStatsInstrumentation* rendering_stats_instrumentation,
106 size_t scheduled_raster_task_limit); 106 size_t scheduled_raster_task_limit);
107 ~TileManager() override; 107 ~TileManager() override;
108 108
109 void ManageTiles(const GlobalStateThatImpactsTilePriority& state); 109 void ManageTiles(const GlobalStateThatImpactsTilePriority& state);
110 110
111 // Returns true when visible tiles have been initialized. 111 void UpdateVisibleTiles();
112 bool UpdateVisibleTiles();
113 112
114 scoped_refptr<Tile> CreateTile(RasterSource* raster_source, 113 scoped_refptr<Tile> CreateTile(RasterSource* raster_source,
115 const gfx::Size& tile_size, 114 const gfx::Size& tile_size,
116 const gfx::Rect& content_rect, 115 const gfx::Rect& content_rect,
117 float contents_scale, 116 float contents_scale,
118 int layer_id, 117 int layer_id,
119 int source_frame_number, 118 int source_frame_number,
120 int flags); 119 int flags);
121 120
122 scoped_refptr<base::debug::ConvertableToTraceFormat> BasicStateAsValue() 121 scoped_refptr<base::debug::ConvertableToTraceFormat> BasicStateAsValue()
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 const size_t scheduled_raster_task_limit_; 246 const size_t scheduled_raster_task_limit_;
248 247
249 typedef base::hash_map<Tile::Id, Tile*> TileMap; 248 typedef base::hash_map<Tile::Id, Tile*> TileMap;
250 TileMap tiles_; 249 TileMap tiles_;
251 250
252 bool all_tiles_that_need_to_be_rasterized_are_scheduled_; 251 bool all_tiles_that_need_to_be_rasterized_are_scheduled_;
253 MemoryHistory::Entry memory_stats_from_last_assign_; 252 MemoryHistory::Entry memory_stats_from_last_assign_;
254 253
255 RenderingStatsInstrumentation* rendering_stats_instrumentation_; 254 RenderingStatsInstrumentation* rendering_stats_instrumentation_;
256 255
257 bool did_initialize_visible_tile_;
258 bool did_check_for_completed_tasks_since_last_schedule_tasks_; 256 bool did_check_for_completed_tasks_since_last_schedule_tasks_;
259 bool did_oom_on_last_assign_; 257 bool did_oom_on_last_assign_;
260 258
261 typedef base::hash_map<uint32_t, scoped_refptr<ImageDecodeTask>> 259 typedef base::hash_map<uint32_t, scoped_refptr<ImageDecodeTask>>
262 PixelRefTaskMap; 260 PixelRefTaskMap;
263 typedef base::hash_map<int, PixelRefTaskMap> LayerPixelRefTaskMap; 261 typedef base::hash_map<int, PixelRefTaskMap> LayerPixelRefTaskMap;
264 LayerPixelRefTaskMap image_decode_tasks_; 262 LayerPixelRefTaskMap image_decode_tasks_;
265 263
266 typedef base::hash_map<int, int> LayerCountMap; 264 typedef base::hash_map<int, int> LayerCountMap;
267 LayerCountMap used_layer_counts_; 265 LayerCountMap used_layer_counts_;
(...skipping 15 matching lines...) Expand all
283 RasterTilePriorityQueue raster_priority_queue_; 281 RasterTilePriorityQueue raster_priority_queue_;
284 EvictionTilePriorityQueue eviction_priority_queue_; 282 EvictionTilePriorityQueue eviction_priority_queue_;
285 bool eviction_priority_queue_is_up_to_date_; 283 bool eviction_priority_queue_is_up_to_date_;
286 284
287 DISALLOW_COPY_AND_ASSIGN(TileManager); 285 DISALLOW_COPY_AND_ASSIGN(TileManager);
288 }; 286 };
289 287
290 } // namespace cc 288 } // namespace cc
291 289
292 #endif // CC_RESOURCES_TILE_MANAGER_H_ 290 #endif // CC_RESOURCES_TILE_MANAGER_H_
OLDNEW
« no previous file with comments | « cc/resources/task_graph_runner_unittest.cc ('k') | cc/resources/tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698