Chromium Code Reviews| 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..22eba6411b12cbbb3c199604d9a4c88b64cee2bb |
| --- /dev/null |
| +++ b/cc/resources/prioritized_tile.h |
| @@ -0,0 +1,36 @@ |
| +// 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 { |
|
vmpstr
2015/05/11 16:44:44
Can you leave a brief comment here about the usage
hendrikw
2015/05/11 17:38:30
Done.
|
| + public: |
| + 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_ |