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

Unified Diff: cc/resources/tile.h

Issue 817133006: Support different formats in the same resource pool. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
Index: cc/resources/tile.h
diff --git a/cc/resources/tile.h b/cc/resources/tile.h
index 2394dcb6be11cab18a319f39ec3682943e28485b..6c6713f0e6232db88755c7fc516ab11dc0525813 100644
--- a/cc/resources/tile.h
+++ b/cc/resources/tile.h
@@ -19,7 +19,7 @@ class TileManager;
class CC_EXPORT Tile : public RefCountedManaged<Tile> {
public:
- enum TileRasterFlags { USE_PICTURE_ANALYSIS = 1 << 0 };
+ enum TileRasterFlags { USE_PICTURE_ANALYSIS = 1 << 0, IS_OPAQUE = 1 << 1 };
typedef uint64 Id;
@@ -106,6 +106,8 @@ class CC_EXPORT Tile : public RefCountedManaged<Tile> {
inline bool IsReadyToDraw() const { return draw_info_.IsReadyToDraw(); }
+ bool IsOpaque() const { return !!(flags_ & IS_OPAQUE); }
+
const TileDrawInfo& draw_info() const { return draw_info_; }
TileDrawInfo& draw_info() { return draw_info_; }

Powered by Google App Engine
This is Rietveld 408576698