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

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: removed unused vars Created 7 years, 10 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/tile.h
diff --git a/cc/tile.h b/cc/tile.h
index 1c988c2dc998e95910cb4de1493e23b793876bd8..6d4f27caa487f0cd0f73f582ffc30d189f2571ae 100644
--- a/cc/tile.h
+++ b/cc/tile.h
@@ -61,6 +61,20 @@ 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 get_solid_color() const {
+ return managed_state_.picture_pile_analysis.get_solid_color();
+ }
+
const gfx::Rect& opaque_rect() const { return opaque_rect_; }
bool contents_swizzled() const { return managed_state_.contents_swizzled; }

Powered by Google App Engine
This is Rietveld 408576698