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

Unified Diff: cc/tile.cc

Issue 12316084: cc: Consolidate the analysis_canvas operations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
Index: cc/tile.cc
diff --git a/cc/tile.cc b/cc/tile.cc
index 818579128945893be96a5944179d164f808f8bea..22d0b99c847a6373af61df11a26bab2a493c01e4 100644
--- a/cc/tile.cc
+++ b/cc/tile.cc
@@ -45,4 +45,10 @@ scoped_ptr<base::Value> Tile::AsValue() const {
return res.PassAs<base::Value>();
}
+bool Tile::IsReadyToDraw() const {
+ return GetResourceId() != 0 ||
+ is_solid_color() ||
+ is_transparent();
+}
+
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698