OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_PRIORITIZED_TILE_H_ | 5 #ifndef CC_TILES_PRIORITIZED_TILE_H_ |
6 #define CC_TILES_PRIORITIZED_TILE_H_ | 6 #define CC_TILES_PRIORITIZED_TILE_H_ |
7 | 7 |
8 #include "cc/base/cc_export.h" | 8 #include "cc/base/cc_export.h" |
9 #include "cc/tiles/tile.h" | 9 #include "cc/tiles/tile.h" |
10 #include "cc/tiles/tile_priority.h" | 10 #include "cc/tiles/tile_priority.h" |
11 | 11 |
12 namespace cc { | 12 namespace cc { |
| 13 class DisplayListRasterSource; |
13 class PictureLayerTiling; | 14 class PictureLayerTiling; |
14 class RasterSource; | |
15 | 15 |
16 class CC_EXPORT PrioritizedTile { | 16 class CC_EXPORT PrioritizedTile { |
17 public: | 17 public: |
18 // This class is constructed and returned by a |PictureLayerTiling|, and | 18 // This class is constructed and returned by a |PictureLayerTiling|, and |
19 // represents a tile and its priority. | 19 // represents a tile and its priority. |
20 PrioritizedTile(); | 20 PrioritizedTile(); |
21 ~PrioritizedTile(); | 21 ~PrioritizedTile(); |
22 | 22 |
23 Tile* tile() const { return tile_; } | 23 Tile* tile() const { return tile_; } |
24 RasterSource* raster_source() const { return raster_source_; } | 24 DisplayListRasterSource* raster_source() const { return raster_source_; } |
25 const TilePriority& priority() const { return priority_; } | 25 const TilePriority& priority() const { return priority_; } |
26 bool is_occluded() const { return is_occluded_; } | 26 bool is_occluded() const { return is_occluded_; } |
27 | 27 |
28 void AsValueInto(base::trace_event::TracedValue* value) const; | 28 void AsValueInto(base::trace_event::TracedValue* value) const; |
29 | 29 |
30 private: | 30 private: |
31 friend class PictureLayerTiling; | 31 friend class PictureLayerTiling; |
32 | 32 |
33 PrioritizedTile(Tile* tile, | 33 PrioritizedTile(Tile* tile, |
34 RasterSource* raster_source, | 34 DisplayListRasterSource* raster_source, |
35 const TilePriority priority, | 35 const TilePriority priority, |
36 bool is_occluded); | 36 bool is_occluded); |
37 | 37 |
38 Tile* tile_; | 38 Tile* tile_; |
39 RasterSource* raster_source_; | 39 DisplayListRasterSource* raster_source_; |
40 TilePriority priority_; | 40 TilePriority priority_; |
41 bool is_occluded_; | 41 bool is_occluded_; |
42 }; | 42 }; |
43 | 43 |
44 } // namespace cc | 44 } // namespace cc |
45 | 45 |
46 #endif // CC_TILES_PRIORITIZED_TILE_H_ | 46 #endif // CC_TILES_PRIORITIZED_TILE_H_ |
OLD | NEW |