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

Unified Diff: cc/tile.h

Issue 12316084: cc: Consolidate the analysis_canvas operations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win warning fix Created 7 years, 9 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/fake_picture_layer_tiling_client.cc ('k') | cc/tile.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tile.h
diff --git a/cc/tile.h b/cc/tile.h
index 1c988c2dc998e95910cb4de1493e23b793876bd8..5e9d4d750de96259cb12a7a6489044929d702c16 100644
--- a/cc/tile.h
+++ b/cc/tile.h
@@ -61,6 +61,21 @@ class CC_EXPORT Tile : public base::RefCounted<Tile> {
return managed_state_.resource->id();
}
+ bool IsReadyToDraw() const;
+
+ bool is_solid_color() const {
+ return managed_state_.picture_pile_analysis.is_solid_color;
+ }
+
+ bool is_transparent() const {
+ return managed_state_.picture_pile_analysis.is_transparent;
+ }
+
+ SkColor solid_color() const {
+ DCHECK(managed_state_.picture_pile_analysis.is_solid_color);
+ return managed_state_.picture_pile_analysis.solid_color;
+ }
+
const gfx::Rect& opaque_rect() const { return opaque_rect_; }
bool contents_swizzled() const { return managed_state_.contents_swizzled; }
« no previous file with comments | « cc/test/fake_picture_layer_tiling_client.cc ('k') | cc/tile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698