Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(265)

Unified Diff: cc/resources/prioritized_tile.h

Issue 1130123003: cc: Separate the priority from the tile and put in new PrioritizedTile (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/resources/picture_layer_tiling_unittest.cc ('k') | cc/resources/prioritized_tile.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..b26476ab938f8cf0fb95bebb04d46bb5d0d28ad3
--- /dev/null
+++ b/cc/resources/prioritized_tile.h
@@ -0,0 +1,38 @@
+// 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:
+ // This class is constructed and returned by a |PictureLayerTiling|, and
+ // represents a tile and its priority.
+ PrioritizedTile();
+ ~PrioritizedTile();
+
+ Tile* tile() const { return tile_; }
+ const TilePriority& priority() const { return priority_; }
+ bool is_occluded() const { return is_occluded_; }
+
+ private:
+ friend class PictureLayerTiling;
+
+ PrioritizedTile(Tile* tile, const TilePriority priority, bool is_occluded);
+
+ Tile* tile_;
+ TilePriority priority_;
+ bool is_occluded_;
+};
+
+} // namespace cc
+
+#endif // CC_RESOURCES_PRIORITIZED_TILE_H_
« no previous file with comments | « cc/resources/picture_layer_tiling_unittest.cc ('k') | cc/resources/prioritized_tile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698