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

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: 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/tile.h ('k') | cc/tile_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « cc/tile.h ('k') | cc/tile_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698