chromecast: Fix rounding of aura root window size with rotation
When a rotation is set, a very tiny error is introduced in the root window transform due to use of trig functions in computing the transform. This small error is later turned into a full pixel error when the root window updates its transform. Avoid trig functions in the display rotation transform. Use of a scale factor can still cause similar problems, but this should fix most problems at 1x scale. Bug: b/78781894 Test: cast_graphics_unittests with new test in next patch Change-Id: I1ac5d50ef56a1627f2698a47f5d4a2692446332f Reviewed-on: https://chromium-review.googlesource.com/1087805Reviewed-by:Alex Sakhartchouk <alexst@chromium.org> Commit-Queue: Michael Spang <spang@chromium.org> Cr-Commit-Position: refs/heads/master@{#564739}
Showing
Please register or sign in to comment