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

Unified Diff: cc/tiles/tile.h

Issue 1351283003: Allow task pools to reason about transparency. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make StagingBuffer constructor non-explicit Created 5 years, 3 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/test/pixel_test.cc ('k') | cc/tiles/tile_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tiles/tile.h
diff --git a/cc/tiles/tile.h b/cc/tiles/tile.h
index 083c76314a70af63b0c91afffcb392185ed68ca5..e245e0111d9ffa3fb26ed09e560d4e1d006eee41 100644
--- a/cc/tiles/tile.h
+++ b/cc/tiles/tile.h
@@ -43,7 +43,7 @@ class CC_EXPORT Tile {
contents_scale(contents_scale) {}
};
- enum TileRasterFlags { USE_PICTURE_ANALYSIS = 1 << 0 };
+ enum TileRasterFlags { USE_PICTURE_ANALYSIS = 1 << 0, IS_OPAQUE = 1 << 1 };
typedef uint64 Id;
@@ -65,6 +65,8 @@ class CC_EXPORT Tile {
return !!(flags_ & USE_PICTURE_ANALYSIS);
}
+ bool is_opaque() const { return !!(flags_ & IS_OPAQUE); }
+
void AsValueInto(base::trace_event::TracedValue* value) const;
const TileDrawInfo& draw_info() const { return draw_info_; }
« no previous file with comments | « cc/test/pixel_test.cc ('k') | cc/tiles/tile_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698