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_TILES_TILE_H_ | 5 #ifndef CC_TILES_TILE_H_ |
6 #define CC_TILES_TILE_H_ | 6 #define CC_TILES_TILE_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "cc/raster/tile_task.h" | 13 #include "cc/raster/tile_task.h" |
14 #include "cc/tiles/tile_draw_info.h" | 14 #include "cc/tiles/tile_draw_info.h" |
15 #include "ui/gfx/geometry/rect.h" | 15 #include "ui/gfx/geometry/rect.h" |
16 #include "ui/gfx/geometry/size.h" | 16 #include "ui/gfx/geometry/size.h" |
17 | 17 |
18 namespace cc { | 18 namespace cc { |
19 | 19 |
20 class PrioritizedTile; | |
21 class TileManager; | 20 class TileManager; |
22 struct TilePriority; | |
23 | 21 |
24 class CC_EXPORT Tile { | 22 class CC_EXPORT Tile { |
25 public: | 23 public: |
26 class CC_EXPORT Deleter { | 24 class CC_EXPORT Deleter { |
27 public: | 25 public: |
28 void operator()(Tile* tile) const; | 26 void operator()(Tile* tile) const; |
29 }; | 27 }; |
30 | 28 |
31 class CC_EXPORT CreateInfo { | 29 class CC_EXPORT CreateInfo { |
32 public: | 30 public: |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 scoped_refptr<TileTask> raster_task_; | 154 scoped_refptr<TileTask> raster_task_; |
157 | 155 |
158 DISALLOW_COPY_AND_ASSIGN(Tile); | 156 DISALLOW_COPY_AND_ASSIGN(Tile); |
159 }; | 157 }; |
160 | 158 |
161 using ScopedTilePtr = std::unique_ptr<Tile, Tile::Deleter>; | 159 using ScopedTilePtr = std::unique_ptr<Tile, Tile::Deleter>; |
162 | 160 |
163 } // namespace cc | 161 } // namespace cc |
164 | 162 |
165 #endif // CC_TILES_TILE_H_ | 163 #endif // CC_TILES_TILE_H_ |
OLD | NEW |