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