| 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_mode.h" | 10 #include "cc/resources/raster_mode.h" |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 | 97 |
| 98 Mode mode_; | 98 Mode mode_; |
| 99 SkColor solid_color_; | 99 SkColor solid_color_; |
| 100 scoped_ptr<ScopedResource> resource_; | 100 scoped_ptr<ScopedResource> resource_; |
| 101 scoped_refptr<RasterTask> raster_task_; | 101 scoped_refptr<RasterTask> raster_task_; |
| 102 }; | 102 }; |
| 103 | 103 |
| 104 ManagedTileState(); | 104 ManagedTileState(); |
| 105 ~ManagedTileState(); | 105 ~ManagedTileState(); |
| 106 | 106 |
| 107 void AsValueInto(base::debug::TracedValue* dict) const; | 107 scoped_ptr<base::Value> AsValue() const; |
| 108 | 108 |
| 109 // Persisted state: valid all the time. | 109 // Persisted state: valid all the time. |
| 110 TileVersion tile_versions[NUM_RASTER_MODES]; | 110 TileVersion tile_versions[NUM_RASTER_MODES]; |
| 111 RasterMode raster_mode; | 111 RasterMode raster_mode; |
| 112 | 112 |
| 113 ManagedTileBin bin; | 113 ManagedTileBin bin; |
| 114 | 114 |
| 115 TileResolution resolution; | 115 TileResolution resolution; |
| 116 bool required_for_activation; | 116 bool required_for_activation; |
| 117 TilePriority::PriorityBin priority_bin; | 117 TilePriority::PriorityBin priority_bin; |
| 118 float distance_to_visible; | 118 float distance_to_visible; |
| 119 bool visible_and_ready_to_draw; | 119 bool visible_and_ready_to_draw; |
| 120 | 120 |
| 121 // Priority for this state from the last time we assigned memory. | 121 // Priority for this state from the last time we assigned memory. |
| 122 unsigned scheduled_priority; | 122 unsigned scheduled_priority; |
| 123 }; | 123 }; |
| 124 | 124 |
| 125 } // namespace cc | 125 } // namespace cc |
| 126 | 126 |
| 127 #endif // CC_RESOURCES_MANAGED_TILE_STATE_H_ | 127 #endif // CC_RESOURCES_MANAGED_TILE_STATE_H_ |
| OLD | NEW |