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