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

Unified Diff: cc/tile.cc

Issue 12353003: cc: Refactored Tile::GetResourceId (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: compile 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 22d0b99c847a6373af61df11a26bab2a493c01e4..2bc01f89de4ed01b5d1f7ac70c69a4aef7c3001e 100644
--- a/cc/tile.cc
+++ b/cc/tile.cc
@@ -45,10 +45,9 @@ scoped_ptr<base::Value> Tile::AsValue() const {
return res.PassAs<base::Value>();
}
-bool Tile::IsReadyToDraw() const {
- return GetResourceId() != 0 ||
- is_solid_color() ||
- is_transparent();
+void Tile::SetPriority(WhichTree tree, const TilePriority& priority) {
+ tile_manager_->WillModifyTilePriority(this, tree, priority);
+ priority_[tree] = priority;
}
} // 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