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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
104 scoped_ptr<base::Value> AsValue() const; | 104 scoped_ptr<base::Value> AsValue() const; |
105 | 105 |
106 // Persisted state: valid all the time. | 106 // Persisted state: valid all the time. |
107 TileVersion tile_versions[NUM_RASTER_MODES]; | 107 TileVersion tile_versions[NUM_RASTER_MODES]; |
108 RasterMode raster_mode; | 108 RasterMode raster_mode; |
109 | 109 |
110 ManagedTileBin bin; | 110 ManagedTileBin bin; |
111 | 111 |
112 TileResolution resolution; | 112 TileResolution resolution; |
113 bool required_for_activation; | 113 bool required_for_activation; |
114 float time_to_needed_in_seconds; | 114 TilePriority::PriorityBin priority_bin; |
115 float distance_to_visible_in_pixels; | 115 float distance_to_visible; |
epennerAtGoogle
2014/02/03 23:43:03
Since we plan on 'augmenting' this distance in var
enne (OOO)
2014/02/04 00:38:22
I thought we would be able to use this really as d
vmpstr
2014/02/04 19:50:49
I initially considered doing a single metric, by b
epennerAtGoogle
2014/02/04 21:34:12
SGTM. Cramming into one priority can wait, and onl
| |
116 bool visible_and_ready_to_draw; | 116 bool visible_and_ready_to_draw; |
117 | 117 |
118 // Priority for this state from the last time we assigned memory. | 118 // Priority for this state from the last time we assigned memory. |
119 unsigned scheduled_priority; | 119 unsigned scheduled_priority; |
120 }; | 120 }; |
121 | 121 |
122 } // namespace cc | 122 } // namespace cc |
123 | 123 |
124 #endif // CC_RESOURCES_MANAGED_TILE_STATE_H_ | 124 #endif // CC_RESOURCES_MANAGED_TILE_STATE_H_ |
OLD | NEW |