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

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

Issue 767083005: cc: Rename TileManager::ManageTiles to PrepareTiles. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed a Trace name. Created 6 years 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/layers/picture_layer_impl_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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 99
100 static scoped_ptr<TileManager> Create( 100 static scoped_ptr<TileManager> Create(
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 // Assigns tile memory and schedules work to prepare tiles for drawing.
110 // - Runs client_->NotifyReadyToActivate() when all tiles required for
111 // activation are prepared, or failed to prepare due to OOM.
112 // - Runs client_->NotifyReadyToDraw() when all tiles required draw are
113 // prepared, or failed to prepare due to OOM.
114 void PrepareTiles(const GlobalStateThatImpactsTilePriority& state);
110 115
111 void UpdateVisibleTiles(); 116 void UpdateVisibleTiles();
112 117
113 scoped_refptr<Tile> CreateTile(RasterSource* raster_source, 118 scoped_refptr<Tile> CreateTile(RasterSource* raster_source,
114 const gfx::Size& tile_size, 119 const gfx::Size& tile_size,
115 const gfx::Rect& content_rect, 120 const gfx::Rect& content_rect,
116 float contents_scale, 121 float contents_scale,
117 int layer_id, 122 int layer_id,
118 int source_frame_number, 123 int source_frame_number,
119 int flags); 124 int flags);
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 293
289 bool did_notify_ready_to_activate_; 294 bool did_notify_ready_to_activate_;
290 bool did_notify_ready_to_draw_; 295 bool did_notify_ready_to_draw_;
291 296
292 DISALLOW_COPY_AND_ASSIGN(TileManager); 297 DISALLOW_COPY_AND_ASSIGN(TileManager);
293 }; 298 };
294 299
295 } // namespace cc 300 } // namespace cc
296 301
297 #endif // CC_RESOURCES_TILE_MANAGER_H_ 302 #endif // CC_RESOURCES_TILE_MANAGER_H_
OLDNEW
« no previous file with comments | « cc/layers/picture_layer_impl_unittest.cc ('k') | cc/resources/tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698