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

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

Issue 141163019: Re-land: cc: Remove WorkerPool class and instead use TaskGraphRunner directly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix mode of task_graph_runner.h Created 6 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 | Annotate | Revision Log
« 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 <queue> 8 #include <queue>
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 public RefCountedManager<Tile> { 50 public RefCountedManager<Tile> {
51 public: 51 public:
52 static scoped_ptr<TileManager> Create( 52 static scoped_ptr<TileManager> Create(
53 TileManagerClient* client, 53 TileManagerClient* client,
54 ResourceProvider* resource_provider, 54 ResourceProvider* resource_provider,
55 ContextProvider* context_provider, 55 ContextProvider* context_provider,
56 RenderingStatsInstrumentation* rendering_stats_instrumentation, 56 RenderingStatsInstrumentation* rendering_stats_instrumentation,
57 bool use_map_image, 57 bool use_map_image,
58 size_t max_transfer_buffer_usage_bytes, 58 size_t max_transfer_buffer_usage_bytes,
59 size_t max_raster_usage_bytes, 59 size_t max_raster_usage_bytes,
60 GLenum map_image_texture_target); 60 unsigned map_image_texture_target);
61 virtual ~TileManager(); 61 virtual ~TileManager();
62 62
63 void ManageTiles(const GlobalStateThatImpactsTilePriority& state); 63 void ManageTiles(const GlobalStateThatImpactsTilePriority& state);
64 64
65 // Returns true when visible tiles have been initialized. 65 // Returns true when visible tiles have been initialized.
66 bool UpdateVisibleTiles(); 66 bool UpdateVisibleTiles();
67 67
68 scoped_refptr<Tile> CreateTile(PicturePileImpl* picture_pile, 68 scoped_refptr<Tile> CreateTile(PicturePileImpl* picture_pile,
69 gfx::Size tile_size, 69 gfx::Size tile_size,
70 const gfx::Rect& content_rect, 70 const gfx::Rect& content_rect,
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 RasterTaskCompletionStats update_visible_tiles_stats_; 215 RasterTaskCompletionStats update_visible_tiles_stats_;
216 216
217 std::vector<Tile*> released_tiles_; 217 std::vector<Tile*> released_tiles_;
218 218
219 DISALLOW_COPY_AND_ASSIGN(TileManager); 219 DISALLOW_COPY_AND_ASSIGN(TileManager);
220 }; 220 };
221 221
222 } // namespace cc 222 } // namespace cc
223 223
224 #endif // CC_RESOURCES_TILE_MANAGER_H_ 224 #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