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

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: Fix nits 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') | no next file with comments »
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..f29baf6907ac83b00cecfa0a54afc56de0bc4fb1 100644
--- a/cc/resources/tile.cc
+++ b/cc/resources/tile.cc
@@ -46,6 +46,9 @@ scoped_ptr<base::Value> Tile::AsValue() const {
}
void Tile::SetPriority(WhichTree tree, const TilePriority& priority) {
+ if (priority_[tree] == priority)
+ return;
+
tile_manager_->WillModifyTilePriority(this, tree, priority);
priority_[tree] = priority;
}
« no previous file with comments | « no previous file | cc/resources/tile_priority.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698