| 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 30 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 // This is state that is specific to a tile that is | 42 // This is state that is specific to a tile that is |
| 43 // managed by the TileManager. | 43 // managed by the TileManager. |
| 44 class CC_EXPORT ManagedTileState { | 44 class CC_EXPORT ManagedTileState { |
| 45 public: | 45 public: |
| 46 class CC_EXPORT TileVersion { | 46 class CC_EXPORT TileVersion { |
| 47 public: | 47 public: |
| 48 enum Mode { | 48 enum Mode { |
| 49 RESOURCE_MODE, | 49 RESOURCE_MODE, |
| 50 SOLID_COLOR_MODE, | 50 SOLID_COLOR_MODE, |
| 51 PICTURE_PILE_MODE, | 51 PICTURE_PILE_MODE |
| 52 NUM_MODES | |
| 53 }; | 52 }; |
| 54 | 53 |
| 55 TileVersion(); | 54 TileVersion(); |
| 56 ~TileVersion(); | 55 ~TileVersion(); |
| 57 | 56 |
| 58 Mode mode() const { | 57 Mode mode() const { |
| 59 return mode_; | 58 return mode_; |
| 60 } | 59 } |
| 61 | 60 |
| 62 bool IsReadyToDraw() const; | 61 bool IsReadyToDraw() const; |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 float distance_to_visible_in_pixels; | 152 float distance_to_visible_in_pixels; |
| 154 bool visible_and_ready_to_draw; | 153 bool visible_and_ready_to_draw; |
| 155 | 154 |
| 156 // Priority for this state from the last time we assigned memory. | 155 // Priority for this state from the last time we assigned memory. |
| 157 unsigned scheduled_priority; | 156 unsigned scheduled_priority; |
| 158 }; | 157 }; |
| 159 | 158 |
| 160 } // namespace cc | 159 } // namespace cc |
| 161 | 160 |
| 162 #endif // CC_RESOURCES_MANAGED_TILE_STATE_H_ | 161 #endif // CC_RESOURCES_MANAGED_TILE_STATE_H_ |
| OLD | NEW |