| 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_H_ | 5 #ifndef CC_RESOURCES_TILE_H_ |
| 6 #define CC_RESOURCES_TILE_H_ | 6 #define CC_RESOURCES_TILE_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 float contents_scale, | 144 float contents_scale, |
| 145 int layer_id, | 145 int layer_id, |
| 146 int source_frame_number, | 146 int source_frame_number, |
| 147 int flags); | 147 int flags); |
| 148 ~Tile(); | 148 ~Tile(); |
| 149 | 149 |
| 150 ManagedTileState& managed_state() { return managed_state_; } | 150 ManagedTileState& managed_state() { return managed_state_; } |
| 151 const ManagedTileState& managed_state() const { return managed_state_; } | 151 const ManagedTileState& managed_state() const { return managed_state_; } |
| 152 RasterMode DetermineRasterModeForResolution(TileResolution resolution) const; | 152 RasterMode DetermineRasterModeForResolution(TileResolution resolution) const; |
| 153 | 153 |
| 154 TileManager* tile_manager_; | |
| 155 scoped_refptr<PicturePileImpl> picture_pile_; | 154 scoped_refptr<PicturePileImpl> picture_pile_; |
| 156 gfx::Rect tile_size_; | 155 gfx::Rect tile_size_; |
| 157 gfx::Rect content_rect_; | 156 gfx::Rect content_rect_; |
| 158 float contents_scale_; | 157 float contents_scale_; |
| 159 gfx::Rect opaque_rect_; | 158 gfx::Rect opaque_rect_; |
| 160 | 159 |
| 161 TilePriority priority_[NUM_TREES]; | 160 TilePriority priority_[NUM_TREES]; |
| 162 ManagedTileState managed_state_; | 161 ManagedTileState managed_state_; |
| 163 int layer_id_; | 162 int layer_id_; |
| 164 int source_frame_number_; | 163 int source_frame_number_; |
| 165 int flags_; | 164 int flags_; |
| 166 | 165 |
| 167 Id id_; | 166 Id id_; |
| 168 static Id s_next_id_; | 167 static Id s_next_id_; |
| 169 | 168 |
| 170 DISALLOW_COPY_AND_ASSIGN(Tile); | 169 DISALLOW_COPY_AND_ASSIGN(Tile); |
| 171 }; | 170 }; |
| 172 | 171 |
| 173 } // namespace cc | 172 } // namespace cc |
| 174 | 173 |
| 175 #endif // CC_RESOURCES_TILE_H_ | 174 #endif // CC_RESOURCES_TILE_H_ |
| OLD | NEW |