OLD | NEW |
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 // should no longer have any memory assigned to them. Tile objects are "owned" | 47 // should no longer have any memory assigned to them. Tile objects are "owned" |
48 // by layers; they automatically register with the manager when they are | 48 // by layers; they automatically register with the manager when they are |
49 // created, and unregister from the manager when they are deleted. | 49 // created, and unregister from the manager when they are deleted. |
50 class CC_EXPORT TileManager : public RasterWorkerPoolClient, | 50 class CC_EXPORT TileManager : public RasterWorkerPoolClient, |
51 public RefCountedManager<Tile>, | 51 public RefCountedManager<Tile>, |
52 public RefCountedManager<TileBundle> { | 52 public RefCountedManager<TileBundle> { |
53 public: | 53 public: |
54 static scoped_ptr<TileManager> Create( | 54 static scoped_ptr<TileManager> Create( |
55 TileManagerClient* client, | 55 TileManagerClient* client, |
56 ResourceProvider* resource_provider, | 56 ResourceProvider* resource_provider, |
| 57 ContextProvider* context_provider, |
57 size_t num_raster_threads, | 58 size_t num_raster_threads, |
58 RenderingStatsInstrumentation* rendering_stats_instrumentation, | 59 RenderingStatsInstrumentation* rendering_stats_instrumentation, |
59 bool use_map_image, | 60 bool use_map_image, |
60 size_t max_transfer_buffer_usage_bytes, | 61 size_t max_transfer_buffer_usage_bytes, |
61 size_t max_raster_usage_bytes, | 62 size_t max_raster_usage_bytes, |
62 GLenum map_image_texture_target); | 63 GLenum map_image_texture_target); |
63 virtual ~TileManager(); | 64 virtual ~TileManager(); |
64 | 65 |
65 void ManageTiles(const GlobalStateThatImpactsTilePriority& state); | 66 void ManageTiles(const GlobalStateThatImpactsTilePriority& state); |
66 | 67 |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 | 234 |
234 std::vector<Tile*> released_tiles_; | 235 std::vector<Tile*> released_tiles_; |
235 std::vector<TileBundle*> released_tile_bundles_; | 236 std::vector<TileBundle*> released_tile_bundles_; |
236 | 237 |
237 DISALLOW_COPY_AND_ASSIGN(TileManager); | 238 DISALLOW_COPY_AND_ASSIGN(TileManager); |
238 }; | 239 }; |
239 | 240 |
240 } // namespace cc | 241 } // namespace cc |
241 | 242 |
242 #endif // CC_RESOURCES_TILE_MANAGER_H_ | 243 #endif // CC_RESOURCES_TILE_MANAGER_H_ |
OLD | NEW |