Change affine transforms to 4x4 transforms for canvas and path
First step on the way of getting non-affine transforms into canvas2D. Right now this is a no-op. Trying to keep the CLs small. CanvasRenderingContext2DState now stores a TransformationMatrix, which is a generic 4x4 matrix instead of an AffineTransform, which is one of those 2x3s used to encode 2D rotation/skew and a translation in the 3rd column. For operations that require an affine transform, there's an explicit GetAffineTransform method that constructs one. Also, CanvasRenderingContext2DState->Transform() has become CanvasRenderingContext2DState->GetTransform() on juanmihd@s sage advice, which is the bulk of this change. Bug: 1140535 Change-Id: I5630e48747dcfc7b7b27f25f1dc1a7cdd8860408 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2490821Reviewed-by:Xida Chen <xidachen@chromium.org> Reviewed-by:
Juanmi Huertas <juanmihd@chromium.org> Commit-Queue: Aaron Krajeski <aaronhk@chromium.org> Cr-Commit-Position: refs/heads/master@{#821964}
Showing
Please register or sign in to comment