viz: Pass device_scale_factor as a float to CanSplitQuad
|device_scale_factor_| is a float and was incorrectly passed as an int to CanSplitQuad. This would cause rounding down the device scale factor and incorrectly computing the number of fragments we are saving. Bug: 1022544 Test: viz_unittests --gtest_filter="*DrawOcclusionSplitDeviceScaleFactor*" Change-Id: I084cb9ce52116b0d37e18ff74dd06233978cb9a0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2072625 Commit-Queue: Daniele Castagna <dcastagna@chromium.org> Reviewed-by:Andres Calderon Jaramillo <andrescj@chromium.org> Reviewed-by:
Gil Dekel <gildekel@chromium.org> Reviewed-by:
Sasha McIntosh <sashamcintosh@chromium.org> Cr-Commit-Position: refs/heads/master@{#745520}
Showing
Please register or sign in to comment