Update surface quad's quad_rect & scaling
The math to scale and size the rect was incorrect. The quad rect should actually be an unscaled embedded_surface_size_ instead of a scaled content_size_. This fixes distortion of the contents as currently the quad will still be scaled incorrectly Similarly, the implementation of the matrix means that translate needs to be scaled up/down as well with continually variable crop offsets and scaling Bug: b/143612326 Test: manually, a 256x256 crop of a 1024x600 surface into a 512x512 quad Change-Id: If545170f9ae4cd53075b2f3128b7dc38383077d3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1994263 Commit-Queue: Albert Chaulk <achaulk@chromium.org> Reviewed-by:Daniele Castagna <dcastagna@chromium.org> Cr-Commit-Position: refs/heads/master@{#730973}
Showing
Please register or sign in to comment