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

Unified Diff: cc/resources/tile_priority.h

Issue 230983004: cc: Fix TilePriority::IsHigherPriorityThan to be correct. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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/resources/picture_layer_tiling.cc ('k') | cc/resources/tile_priority_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/tile_priority.h
diff --git a/cc/resources/tile_priority.h b/cc/resources/tile_priority.h
index 6d5448949a1114662776b84e6f99c7dfed9f5793..31b8e5defb028ccfe2153f9248cba3bd9ee3292b 100644
--- a/cc/resources/tile_priority.h
+++ b/cc/resources/tile_priority.h
@@ -97,9 +97,9 @@ struct CC_EXPORT TilePriority {
}
bool IsHigherPriorityThan(const TilePriority& other) const {
- return priority_bin > other.priority_bin ||
+ return priority_bin < other.priority_bin ||
(priority_bin == other.priority_bin &&
- distance_to_visible > other.distance_to_visible);
+ distance_to_visible < other.distance_to_visible);
}
TileResolution resolution;
« no previous file with comments | « cc/resources/picture_layer_tiling.cc ('k') | cc/resources/tile_priority_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698