Index: cc/resources/prioritized_tile.h |
diff --git a/cc/resources/prioritized_tile.h b/cc/resources/prioritized_tile.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6f7bf61aa2e4da94c14edb0db2796fb960b4df09 |
--- /dev/null |
+++ b/cc/resources/prioritized_tile.h |
@@ -0,0 +1,39 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CC_RESOURCES_PRIORITIZED_TILE_H_ |
+#define CC_RESOURCES_PRIORITIZED_TILE_H_ |
+ |
+#include "cc/base/cc_export.h" |
+#include "cc/resources/tile.h" |
+#include "cc/resources/tile_priority.h" |
+ |
+namespace cc { |
+class PictureLayerTiling; |
+ |
+class CC_EXPORT PrioritizedTile { |
+ public: |
+ PrioritizedTile(); |
+ ~PrioritizedTile(); |
+ |
+ Tile* tile() const { return tile_; } |
+ |
+ void set_priority(TilePriority priority) { priority_ = priority; } |
+ const TilePriority& priority() const { return priority_; } |
+ |
+ void set_is_occluded(bool is_occluded) { is_occluded_ = is_occluded; } |
+ bool is_occluded() const { return is_occluded_; } |
+ |
+ 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.
|
+ void UpdateTile(Tile* tile, PictureLayerTiling* tiling); |
+ |
+ private: |
+ Tile* tile_; |
+ TilePriority priority_; |
+ bool is_occluded_; |
+}; |
+ |
+} // namespace cc |
+ |
+#endif // CC_RESOURCES_PRIORITIZED_TILE_H_ |