OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CC_RESOURCES_PRIORITIZED_TILE_H_ | |
6 #define CC_RESOURCES_PRIORITIZED_TILE_H_ | |
7 | |
8 #include "cc/base/cc_export.h" | |
9 #include "cc/resources/tile.h" | |
10 #include "cc/resources/tile_priority.h" | |
11 | |
12 namespace cc { | |
13 class PictureLayerTiling; | |
14 | |
15 class CC_EXPORT PrioritizedTile { | |
16 public: | |
17 PrioritizedTile(); | |
18 ~PrioritizedTile(); | |
19 | |
20 Tile* tile() const { return tile_; } | |
21 | |
22 void set_priority(TilePriority priority) { priority_ = priority; } | |
23 const TilePriority& priority() const { return priority_; } | |
24 | |
25 void set_is_occluded(bool is_occluded) { is_occluded_ = is_occluded; } | |
26 bool is_occluded() const { return is_occluded_; } | |
27 | |
28 void Invalidate() { tile_ = nullptr; } | |
vmpstr
2015/05/08 18:11:06
This is a bit of an overused name. Can we name thi
hendrikw
2015/05/08 19:21:02
Done.
| |
29 void UpdateTile(Tile* tile, PictureLayerTiling* tiling); | |
30 | |
31 private: | |
32 Tile* tile_; | |
33 TilePriority priority_; | |
34 bool is_occluded_; | |
35 }; | |
36 | |
37 } // namespace cc | |
38 | |
39 #endif // CC_RESOURCES_PRIORITIZED_TILE_H_ | |
OLD | NEW |