Bug 1690609 [wpt PR 27462] - Add some 3d rotation methods to CanvasRenderingContext2D...
commitd4d5a86472dfc1a2c493742e58b64a8a9fdf0bbc
authorAaron Krajeski <aaronhk@chromium.org>
Thu, 11 Feb 2021 16:46:03 +0000 (11 16:46 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Fri, 12 Feb 2021 12:12:17 +0000 (12 12:12 +0000)
treed2e4c36eac9ee5032e87ace78d96234a033afc73
parent5553e63348985ad89a65c1800096dffac29b0b1e
Bug 1690609 [wpt PR 27462] - Add some 3d rotation methods to CanvasRenderingContext2D, a=testonly

Automatic update from web-platform-tests
Add some 3d rotation methods to CanvasRenderingContext2D

rotate3d and rotateAxis as described here: https://github.com/fserb/canvas2D/blob/master/spec/perspective-transforms.md

An ApplyTransform() method is also added to BaseRenderingContext2D to DRY up the code.

Bug: 1140535
Change-Id: I7db7871f7d7bd3e9578854563c9d3f63f7855905
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2668448
Reviewed-by: Fernando Serboncini <fserb@chromium.org>
Reviewed-by: Xida Chen <xidachen@chromium.org>
Commit-Queue: Aaron Krajeski <aaronhk@chromium.org>
Cr-Commit-Position: refs/heads/master@{#851955}

--

wpt-commits: afc6477fb37ca4b0663a3b418681d7554dd9be8d
wpt-pr: 27462
testing/web-platform/tests/html/canvas/element/transformations/2d.transformation.rotate3d.X.html [new file with mode: 0644]
testing/web-platform/tests/html/canvas/element/transformations/2d.transformation.rotate3d.Y.html [new file with mode: 0644]
testing/web-platform/tests/html/canvas/element/transformations/2d.transformation.rotate3d.Z.html [new file with mode: 0644]
testing/web-platform/tests/html/canvas/element/transformations/2d.transformation.rotate3d.html [new file with mode: 0644]
testing/web-platform/tests/html/canvas/element/transformations/2d.transformation.rotateAxis.html [new file with mode: 0644]
testing/web-platform/tests/html/canvas/resources/canvas-tests.js
testing/web-platform/tests/html/canvas/tools/yaml/element/transformations.yaml