aw: Add rounding to BVR::SetTotalRootLayerScrollOffset() calculation.
The intermediate multiplication result was too large to store in float precisely, therefore there was a rounding error. To mitigate this, we apply a rounding for the integer conversion. We only need this for scale up since the granularity is finer. Bug: 881458 Change-Id: I9c07fdfb71fcbc59f36f5094bf813053cac8d8e8 Reviewed-on: https://chromium-review.googlesource.com/1214686 Commit-Queue: Shimi Zhang <ctzsm@chromium.org> Reviewed-by:Bo <boliu@chromium.org> Cr-Commit-Position: refs/heads/master@{#590147}
Showing
Please register or sign in to comment