Fix float-cast overflow in CompositorTransformOperations
Some functions in this class calls APIs in cc::TransformOperations, which all take floats. But those functions provide doubles, and that causes float-cast overflow. This CL solves the problem by using SkDoubleToMScalar, and layout tests are added. Bug: 995038 Change-Id: Ic1b73c31d6090f38c7c6f342d9e953c58567604c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1761733 Commit-Queue: Xida Chen <xidachen@chromium.org> Reviewed-by:Stephen McGruer <smcgruer@chromium.org> Cr-Commit-Position: refs/heads/master@{#688518}
Showing
Please register or sign in to comment