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

Unified Diff: cc/tile_priority.h

Issue 12220112: Made uses of numeric_limits::max and numeric_limits::infinity consistent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tile_priority.h
diff --git a/cc/tile_priority.h b/cc/tile_priority.h
index ae07d5a7b541708f502c286ffeaea7b60b493bed..2b60de30d47a5141d098f07fffb7fb2ce29335d4 100644
--- a/cc/tile_priority.h
+++ b/cc/tile_priority.h
@@ -40,8 +40,8 @@ struct CC_EXPORT TilePriority {
TilePriority()
: is_live(false),
resolution(NON_IDEAL_RESOLUTION),
- time_to_visible_in_seconds(std::numeric_limits<float>::max()),
- distance_to_visible_in_pixels(std::numeric_limits<float>::max()) {}
+ time_to_visible_in_seconds(std::numeric_limits<float>::infinity()),
+ distance_to_visible_in_pixels(std::numeric_limits<float>::infinity()) {}
TilePriority(
TileResolution resolution,
« no previous file with comments | « cc/tile_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698