| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_MANAGED_TILE_STATE_H_ | 5 #ifndef CC_RESOURCES_MANAGED_TILE_STATE_H_ |
| 6 #define CC_RESOURCES_MANAGED_TILE_STATE_H_ | 6 #define CC_RESOURCES_MANAGED_TILE_STATE_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "cc/resources/platform_color.h" | 9 #include "cc/resources/platform_color.h" |
| 10 #include "cc/resources/raster_worker_pool.h" | 10 #include "cc/resources/raster_worker_pool.h" |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 ManagedTileState(); | 118 ManagedTileState(); |
| 119 ~ManagedTileState(); | 119 ~ManagedTileState(); |
| 120 | 120 |
| 121 scoped_ptr<base::Value> AsValue() const; | 121 scoped_ptr<base::Value> AsValue() const; |
| 122 | 122 |
| 123 // Persisted state: valid all the time. | 123 // Persisted state: valid all the time. |
| 124 TileVersion tile_versions[NUM_RASTER_MODES]; | 124 TileVersion tile_versions[NUM_RASTER_MODES]; |
| 125 RasterMode raster_mode; | 125 RasterMode raster_mode; |
| 126 | 126 |
| 127 ManagedTileBin bin; | 127 ManagedTileBin bin; |
| 128 ManagedTileBin tree_bin[NUM_TREES]; | |
| 129 | 128 |
| 130 TileResolution resolution; | 129 TileResolution resolution; |
| 131 bool required_for_activation; | 130 bool required_for_activation; |
| 132 float time_to_needed_in_seconds; | 131 float time_to_needed_in_seconds; |
| 133 float distance_to_visible_in_pixels; | 132 float distance_to_visible_in_pixels; |
| 134 bool visible_and_ready_to_draw; | 133 bool visible_and_ready_to_draw; |
| 135 | 134 |
| 136 // Priority for this state from the last time we assigned memory. | 135 // Priority for this state from the last time we assigned memory. |
| 137 unsigned scheduled_priority; | 136 unsigned scheduled_priority; |
| 138 }; | 137 }; |
| 139 | 138 |
| 140 } // namespace cc | 139 } // namespace cc |
| 141 | 140 |
| 142 #endif // CC_RESOURCES_MANAGED_TILE_STATE_H_ | 141 #endif // CC_RESOURCES_MANAGED_TILE_STATE_H_ |
| OLD | NEW |