forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cc: Fix Raster/Eviction order comparators to return stable values.
For make_heap et al, it is important that we return consistent values representing strict ordering. For instance, if we Comp(a, b) returns true, then it must be the case that Comp(b, a) returns false. Currently, because of IsEmpty checks we can return true in both cases, which makes stl throw an exception. This fix, along with added tests fixes this issue. R=reveman Review URL: https://codereview.chromium.org/448363002 Cr-Commit-Position: refs/heads/master@{#288818} git-svn-id: svn://svn.chromium.org/chrome/trunk/src@288818 0039d316-1c4b-4281-b951-d872f2087c98
- Loading branch information
vmpstr@chromium.org
committed
Aug 11, 2014
1 parent
c95fdd7
commit 5eece1e
Showing
6 changed files
with
132 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters