viz: Fix FindLatestSurfaceUpTo when there is conflict
The condition used in the binary search was wrong. Fixed it and added a unit test. Bug: 1000868 Change-Id: Iaf4af1bdfdb88db1082bfae89a3783faed860934 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1800743 Auto-Submit: Saman Sami <samans@chromium.org> Commit-Queue: Jonathan Ross <jonross@chromium.org> Reviewed-by:Jonathan Ross <jonross@chromium.org> Cr-Commit-Position: refs/heads/master@{#696170}
Showing
Please register or sign in to comment