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

Unified Diff: cc/resources/tile.h

Issue 793693003: Tile Compression (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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/texture_uploader.cc ('k') | cc/resources/tile_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/tile.h
diff --git a/cc/resources/tile.h b/cc/resources/tile.h
index a35cffe86f5fa0e59c6f4ee9a5566f8eed775e4e..0688db7cbc5c39cb5bd9aa7f044c7f2905de7403 100644
--- a/cc/resources/tile.h
+++ b/cc/resources/tile.h
@@ -19,7 +19,11 @@ 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,
+ FREQUENTLY_INVALIDATED = 1 << 2
+ };
typedef uint64 Id;
@@ -96,6 +100,10 @@ class CC_EXPORT Tile : public RefCountedManaged<Tile> {
return !!(flags_ & USE_PICTURE_ANALYSIS);
}
+ bool frequently_invalidated() const {
+ return !!(flags_ & FREQUENTLY_INVALIDATED);
+ }
+
bool HasResources() const { return managed_state_.draw_info.has_resource(); }
bool NeedsRaster() const {
return managed_state_.draw_info.mode() ==
@@ -115,6 +123,8 @@ class CC_EXPORT Tile : public RefCountedManaged<Tile> {
ManagedTileState::DrawInfo& draw_info() { return managed_state_.draw_info; }
+ bool IsOpaque() const { return !!(flags_ & IS_OPAQUE); }
+
float contents_scale() const { return contents_scale_; }
gfx::Rect content_rect() const { return content_rect_; }
« no previous file with comments | « cc/resources/texture_uploader.cc ('k') | cc/resources/tile_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698