| 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 friend class TileManager; | 129 friend class TileManager; |
| 130 friend class PrioritizedTileSet; | 130 friend class PrioritizedTileSet; |
| 131 friend class FakeTileManager; | 131 friend class FakeTileManager; |
| 132 friend class BinComparator; | 132 friend class BinComparator; |
| 133 friend class FakePictureLayerImpl; | 133 friend class FakePictureLayerImpl; |
| 134 | 134 |
| 135 // Methods called by by tile manager. | 135 // Methods called by by tile manager. |
| 136 Tile(TileManager* tile_manager, | 136 Tile(TileManager* tile_manager, |
| 137 PicturePileImpl* picture_pile, | 137 PicturePileImpl* picture_pile, |
| 138 gfx::Size tile_size, | 138 gfx::Size tile_size, |
| 139 gfx::Rect content_rect, | 139 const gfx::Rect& content_rect, |
| 140 gfx::Rect opaque_rect, | 140 const gfx::Rect& opaque_rect, |
| 141 float contents_scale, | 141 float contents_scale, |
| 142 int layer_id, | 142 int layer_id, |
| 143 int source_frame_number, | 143 int source_frame_number, |
| 144 int flags); | 144 int flags); |
| 145 ~Tile(); | 145 ~Tile(); |
| 146 | 146 |
| 147 ManagedTileState& managed_state() { return managed_state_; } | 147 ManagedTileState& managed_state() { return managed_state_; } |
| 148 const ManagedTileState& managed_state() const { return managed_state_; } | 148 const ManagedTileState& managed_state() const { return managed_state_; } |
| 149 | 149 |
| 150 TileManager* tile_manager_; | 150 TileManager* tile_manager_; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 162 | 162 |
| 163 Id id_; | 163 Id id_; |
| 164 static Id s_next_id_; | 164 static Id s_next_id_; |
| 165 | 165 |
| 166 DISALLOW_COPY_AND_ASSIGN(Tile); | 166 DISALLOW_COPY_AND_ASSIGN(Tile); |
| 167 }; | 167 }; |
| 168 | 168 |
| 169 } // namespace cc | 169 } // namespace cc |
| 170 | 170 |
| 171 #endif // CC_RESOURCES_TILE_H_ | 171 #endif // CC_RESOURCES_TILE_H_ |
| OLD | NEW |