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> |
| 9 #include <stdint.h> |
| 10 |
| 11 #include "base/macros.h" |
8 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
9 #include "cc/tiles/tile_draw_info.h" | 13 #include "cc/tiles/tile_draw_info.h" |
10 #include "ui/gfx/geometry/rect.h" | 14 #include "ui/gfx/geometry/rect.h" |
11 #include "ui/gfx/geometry/size.h" | 15 #include "ui/gfx/geometry/size.h" |
12 | 16 |
13 namespace cc { | 17 namespace cc { |
14 | 18 |
15 class PrioritizedTile; | 19 class PrioritizedTile; |
16 class TileManager; | 20 class TileManager; |
17 struct TilePriority; | 21 struct TilePriority; |
(...skipping 20 matching lines...) Expand all Loading... |
38 float contents_scale) | 42 float contents_scale) |
39 : tiling_i_index(tiling_i_index), | 43 : tiling_i_index(tiling_i_index), |
40 tiling_j_index(tiling_j_index), | 44 tiling_j_index(tiling_j_index), |
41 enclosing_layer_rect(enclosing_layer_rect), | 45 enclosing_layer_rect(enclosing_layer_rect), |
42 content_rect(content_rect), | 46 content_rect(content_rect), |
43 contents_scale(contents_scale) {} | 47 contents_scale(contents_scale) {} |
44 }; | 48 }; |
45 | 49 |
46 enum TileRasterFlags { USE_PICTURE_ANALYSIS = 1 << 0, IS_OPAQUE = 1 << 1 }; | 50 enum TileRasterFlags { USE_PICTURE_ANALYSIS = 1 << 0, IS_OPAQUE = 1 << 1 }; |
47 | 51 |
48 typedef uint64 Id; | 52 typedef uint64_t Id; |
49 | 53 |
50 Id id() const { | 54 Id id() const { |
51 return id_; | 55 return id_; |
52 } | 56 } |
53 | 57 |
54 // TODO(vmpstr): Move this to the iterators. | 58 // TODO(vmpstr): Move this to the iterators. |
55 bool required_for_activation() const { return required_for_activation_; } | 59 bool required_for_activation() const { return required_for_activation_; } |
56 void set_required_for_activation(bool is_required) { | 60 void set_required_for_activation(bool is_required) { |
57 required_for_activation_ = is_required; | 61 required_for_activation_ = is_required; |
58 } | 62 } |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 scoped_refptr<RasterTask> raster_task_; | 147 scoped_refptr<RasterTask> raster_task_; |
144 | 148 |
145 DISALLOW_COPY_AND_ASSIGN(Tile); | 149 DISALLOW_COPY_AND_ASSIGN(Tile); |
146 }; | 150 }; |
147 | 151 |
148 using ScopedTilePtr = scoped_ptr<Tile, Tile::Deleter>; | 152 using ScopedTilePtr = scoped_ptr<Tile, Tile::Deleter>; |
149 | 153 |
150 } // namespace cc | 154 } // namespace cc |
151 | 155 |
152 #endif // CC_TILES_TILE_H_ | 156 #endif // CC_TILES_TILE_H_ |
OLD | NEW |