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 <utility> | 10 #include <utility> |
(...skipping 13 matching lines...) Expand all Loading... | |
24 #include "cc/resources/resource_pool.h" | 24 #include "cc/resources/resource_pool.h" |
25 #include "cc/resources/tile.h" | 25 #include "cc/resources/tile.h" |
26 | 26 |
27 namespace cc { | 27 namespace cc { |
28 class RasterWorkerPoolDelegate; | 28 class RasterWorkerPoolDelegate; |
29 class ResourceProvider; | 29 class ResourceProvider; |
30 | 30 |
31 class CC_EXPORT TileManagerClient { | 31 class CC_EXPORT TileManagerClient { |
32 public: | 32 public: |
33 virtual void NotifyReadyToActivate() = 0; | 33 virtual void NotifyReadyToActivate() = 0; |
34 virtual void NotifyInitializedTiles(Tile* tile) = 0; | |
reveman
2014/04/14 20:03:07
NotifyTileInitialized instead? Can it be "const Ti
sohanjg
2014/04/15 10:03:48
Done.
| |
34 | 35 |
35 protected: | 36 protected: |
36 virtual ~TileManagerClient() {} | 37 virtual ~TileManagerClient() {} |
37 }; | 38 }; |
38 | 39 |
39 struct RasterTaskCompletionStats { | 40 struct RasterTaskCompletionStats { |
40 RasterTaskCompletionStats(); | 41 RasterTaskCompletionStats(); |
41 | 42 |
42 size_t completed_count; | 43 size_t completed_count; |
43 size_t canceled_count; | 44 size_t canceled_count; |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
295 std::vector<scoped_refptr<internal::Task> > orphan_raster_tasks_; | 296 std::vector<scoped_refptr<internal::Task> > orphan_raster_tasks_; |
296 | 297 |
297 std::vector<PictureLayerImpl*> layers_; | 298 std::vector<PictureLayerImpl*> layers_; |
298 | 299 |
299 DISALLOW_COPY_AND_ASSIGN(TileManager); | 300 DISALLOW_COPY_AND_ASSIGN(TileManager); |
300 }; | 301 }; |
301 | 302 |
302 } // namespace cc | 303 } // namespace cc |
303 | 304 |
304 #endif // CC_RESOURCES_TILE_MANAGER_H_ | 305 #endif // CC_RESOURCES_TILE_MANAGER_H_ |
OLD | NEW |