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 <deque> | 8 #include <deque> |
9 #include <queue> | 9 #include <queue> |
10 #include <set> | 10 #include <set> |
(...skipping 14 matching lines...) Expand all Loading... |
25 #include "cc/resources/resource_pool.h" | 25 #include "cc/resources/resource_pool.h" |
26 #include "cc/resources/tile.h" | 26 #include "cc/resources/tile.h" |
27 | 27 |
28 namespace cc { | 28 namespace cc { |
29 class RasterizerDelegate; | 29 class RasterizerDelegate; |
30 class ResourceProvider; | 30 class ResourceProvider; |
31 | 31 |
32 class CC_EXPORT TileManagerClient { | 32 class CC_EXPORT TileManagerClient { |
33 public: | 33 public: |
34 virtual void NotifyReadyToActivate() = 0; | 34 virtual void NotifyReadyToActivate() = 0; |
| 35 virtual void NotifyTileInitialized(const Tile* tile) = 0; |
35 | 36 |
36 protected: | 37 protected: |
37 virtual ~TileManagerClient() {} | 38 virtual ~TileManagerClient() {} |
38 }; | 39 }; |
39 | 40 |
40 struct RasterTaskCompletionStats { | 41 struct RasterTaskCompletionStats { |
41 RasterTaskCompletionStats(); | 42 RasterTaskCompletionStats(); |
42 | 43 |
43 size_t completed_count; | 44 size_t completed_count; |
44 size_t canceled_count; | 45 size_t canceled_count; |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 std::vector<scoped_refptr<RasterTask> > orphan_raster_tasks_; | 336 std::vector<scoped_refptr<RasterTask> > orphan_raster_tasks_; |
336 | 337 |
337 std::vector<PictureLayerImpl*> layers_; | 338 std::vector<PictureLayerImpl*> layers_; |
338 | 339 |
339 DISALLOW_COPY_AND_ASSIGN(TileManager); | 340 DISALLOW_COPY_AND_ASSIGN(TileManager); |
340 }; | 341 }; |
341 | 342 |
342 } // namespace cc | 343 } // namespace cc |
343 | 344 |
344 #endif // CC_RESOURCES_TILE_MANAGER_H_ | 345 #endif // CC_RESOURCES_TILE_MANAGER_H_ |
OLD | NEW |