| 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" |
| 11 #include "cc/resources/managed_tile_state.h" | 11 #include "cc/resources/managed_tile_state.h" |
| 12 #include "cc/resources/picture_pile_impl.h" | 12 #include "cc/resources/picture_pile_impl.h" |
| 13 #include "cc/resources/tile_manager.h" | 13 #include "cc/resources/tile_data.h" |
| 14 #include "cc/resources/tile_priority.h" | 14 #include "cc/resources/tile_priority.h" |
| 15 #include "cc/trees/layer_tree_host_impl.h" | 15 #include "cc/trees/layer_tree_host_impl.h" |
| 16 #include "ui/gfx/rect.h" | 16 #include "ui/gfx/rect.h" |
| 17 #include "ui/gfx/size.h" | 17 #include "ui/gfx/size.h" |
| 18 | 18 |
| 19 namespace cc { | 19 namespace cc { |
| 20 | 20 |
| 21 class Tile; | 21 class Tile; |
| 22 class TileManager; |
| 22 | 23 |
| 23 class CC_EXPORT Tile : public base::RefCounted<Tile> { | 24 class CC_EXPORT Tile : public base::RefCounted<Tile> { |
| 24 public: | 25 public: |
| 25 Tile(TileManager* tile_manager, | 26 Tile(TileManager* tile_manager, |
| 26 PicturePileImpl* picture_pile, | 27 PicturePileImpl* picture_pile, |
| 27 gfx::Size tile_size, | 28 gfx::Size tile_size, |
| 28 gfx::Rect content_rect, | 29 gfx::Rect content_rect, |
| 29 gfx::Rect opaque_rect, | 30 gfx::Rect opaque_rect, |
| 30 float contents_scale, | 31 float contents_scale, |
| 31 int layer_id, | 32 int layer_id, |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 ManagedTileState managed_state_; | 139 ManagedTileState managed_state_; |
| 139 int layer_id_; | 140 int layer_id_; |
| 140 int source_frame_number_; | 141 int source_frame_number_; |
| 141 | 142 |
| 142 DISALLOW_COPY_AND_ASSIGN(Tile); | 143 DISALLOW_COPY_AND_ASSIGN(Tile); |
| 143 }; | 144 }; |
| 144 | 145 |
| 145 } // namespace cc | 146 } // namespace cc |
| 146 | 147 |
| 147 #endif // CC_RESOURCES_TILE_H_ | 148 #endif // CC_RESOURCES_TILE_H_ |
| OLD | NEW |