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 "cc/base/ref_counted_managed.h" | 9 #include "cc/base/ref_counted_managed.h" |
10 #include "cc/resources/managed_tile_state.h" | 10 #include "cc/resources/managed_tile_state.h" |
11 #include "cc/resources/raster_source.h" | 11 #include "cc/resources/raster_source.h" |
12 #include "cc/resources/tile_priority.h" | 12 #include "cc/resources/tile_priority.h" |
13 #include "ui/gfx/geometry/rect.h" | 13 #include "ui/gfx/geometry/rect.h" |
14 #include "ui/gfx/geometry/size.h" | 14 #include "ui/gfx/geometry/size.h" |
15 | 15 |
16 namespace cc { | 16 namespace cc { |
17 | 17 |
| 18 class TileManager; |
| 19 |
18 class CC_EXPORT Tile : public RefCountedManaged<Tile> { | 20 class CC_EXPORT Tile : public RefCountedManaged<Tile> { |
19 public: | 21 public: |
20 enum TileRasterFlags { USE_PICTURE_ANALYSIS = 1 << 0 }; | 22 enum TileRasterFlags { USE_PICTURE_ANALYSIS = 1 << 0 }; |
21 | 23 |
22 typedef uint64 Id; | 24 typedef uint64 Id; |
23 | 25 |
24 Id id() const { | 26 Id id() const { |
25 return id_; | 27 return id_; |
26 } | 28 } |
27 | 29 |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 | 184 |
183 Id id_; | 185 Id id_; |
184 static Id s_next_id_; | 186 static Id s_next_id_; |
185 | 187 |
186 DISALLOW_COPY_AND_ASSIGN(Tile); | 188 DISALLOW_COPY_AND_ASSIGN(Tile); |
187 }; | 189 }; |
188 | 190 |
189 } // namespace cc | 191 } // namespace cc |
190 | 192 |
191 #endif // CC_RESOURCES_TILE_H_ | 193 #endif // CC_RESOURCES_TILE_H_ |
OLD | NEW |