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

Unified Diff: cc/resources/tile.cc

Issue 12912008: Check if priority actually changed in Tile::SetPriority() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
« no previous file with comments | « no previous file | cc/resources/tile_priority.h » ('j') | cc/resources/tile_priority.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/tile.cc
diff --git a/cc/resources/tile.cc b/cc/resources/tile.cc
index 48f3ae78ebd0600d04ab0f8ecce7d03f9389768d..20e862d705269a04cd25791e4bef08aad4522019 100644
--- a/cc/resources/tile.cc
+++ b/cc/resources/tile.cc
@@ -46,8 +46,10 @@ scoped_ptr<base::Value> Tile::AsValue() const {
}
void Tile::SetPriority(WhichTree tree, const TilePriority& priority) {
- tile_manager_->WillModifyTilePriority(this, tree, priority);
- priority_[tree] = priority;
+ if (priority_[tree] != priority) {
enne (OOO) 2013/03/20 17:05:57 style nit: early out return here instead.
Xianzhu 2013/03/20 17:24:45 Done.
+ tile_manager_->WillModifyTilePriority(this, tree, priority);
+ priority_[tree] = priority;
+ }
}
} // namespace cc
« no previous file with comments | « no previous file | cc/resources/tile_priority.h » ('j') | cc/resources/tile_priority.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698