Index: cc/resources/prioritized_tile.cc |
diff --git a/cc/resources/prioritized_tile.cc b/cc/resources/prioritized_tile.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f1bbec465c7bbb86f9b10f2fd212b49d5f12c77f |
--- /dev/null |
+++ b/cc/resources/prioritized_tile.cc |
@@ -0,0 +1,23 @@ |
+// 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. |
+ |
+#include "cc/resources/prioritized_tile.h" |
+ |
+#include "cc/resources/picture_layer_tiling.h" |
+ |
+namespace cc { |
+ |
+PrioritizedTile::PrioritizedTile() : tile_(nullptr), is_occluded_(false) { |
+} |
+ |
+PrioritizedTile::~PrioritizedTile() { |
+} |
+ |
+void PrioritizedTile::UpdateTile(Tile* tile, PictureLayerTiling* tiling) { |
+ tile_ = tile; |
+ if (tile_) |
+ tiling->UpdateTilePriority(this); |
+} |
+ |
+} // namespace cc |