| 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 <list> | 8 #include <list> |
| 9 #include <queue> | 9 #include <queue> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 namespace cc { | 23 namespace cc { |
| 24 class RasterWorkerPool; | 24 class RasterWorkerPool; |
| 25 class ResourceProvider; | 25 class ResourceProvider; |
| 26 class Tile; | 26 class Tile; |
| 27 class TileVersion; | 27 class TileVersion; |
| 28 | 28 |
| 29 class CC_EXPORT TileManagerClient { | 29 class CC_EXPORT TileManagerClient { |
| 30 public: | 30 public: |
| 31 virtual void ScheduleManageTiles() = 0; | 31 virtual void ScheduleManageTiles() = 0; |
| 32 virtual void DidInitializeVisibleTile() = 0; | 32 virtual void DidInitializeVisibleTile() = 0; |
| 33 virtual void DidFinishTileRasterTasks() = 0; |
| 33 | 34 |
| 34 protected: | 35 protected: |
| 35 virtual ~TileManagerClient() {} | 36 virtual ~TileManagerClient() {} |
| 36 }; | 37 }; |
| 37 | 38 |
| 38 // Tile manager classifying tiles into a few basic | 39 // Tile manager classifying tiles into a few basic |
| 39 // bins: | 40 // bins: |
| 40 enum TileManagerBin { | 41 enum TileManagerBin { |
| 41 NOW_BIN = 0, // Needed ASAP. | 42 NOW_BIN = 0, // Needed ASAP. |
| 42 SOON_BIN = 1, // Impl-side version of prepainting. | 43 SOON_BIN = 1, // Impl-side version of prepainting. |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 size_t max_pending_tasks_; | 206 size_t max_pending_tasks_; |
| 206 | 207 |
| 207 base::TimeTicks anticipated_draw_time_; | 208 base::TimeTicks anticipated_draw_time_; |
| 208 | 209 |
| 209 DISALLOW_COPY_AND_ASSIGN(TileManager); | 210 DISALLOW_COPY_AND_ASSIGN(TileManager); |
| 210 }; | 211 }; |
| 211 | 212 |
| 212 } // namespace cc | 213 } // namespace cc |
| 213 | 214 |
| 214 #endif // CC_RESOURCES_TILE_MANAGER_H_ | 215 #endif // CC_RESOURCES_TILE_MANAGER_H_ |
| OLD | NEW |