Closed Bug 1700555 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 28205 - ImageBitmap tracks ImageOrientation instead of hard flips

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
89 Branch
Tracking Status
firefox89 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 28205 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/28205
Details from upstream follow.

b'Yi Xu <yiyix@chromium.org>' wrote:

ImageBitmap tracks ImageOrientation instead of hard flips

In the current implementation, if the flip_y setting is set for a image,
we flip the image vertically immediately and saved the result in
|image_|. In this patch, I updated the image orientation to its mirror
image along x-axis, so the flipped image will be rendered when the
|image_| is rendered. No need to do the hard flip.

related test:
fast/webgl/texImage-imageBitmap-from-imageData-resize.html
fast/webgl/texImage-imageBitmap-from-imageData.html

Bug: 1173559

Change-Id: If3debbbeccace28e5a30bc963ff2acd0f99d51b9
Reviewed-on: https://chromium-review.googlesource.com/2693329
WPT-Export-Revision: 7a1eb7e98027e4447ee37532bc13503cd7f7121f

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

CI Results

Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests

Status Summary

Firefox

PASS: 1

Chrome

PASS: 1

Safari

PASS: 1

Links

GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/26f55fc58f79
[wpt PR 28205] - ImageBitmap tracks ImageOrientation instead of hard flips, a=testonly
Pushed by nbeleuzu@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ad078240fa71
[wpt PR 28205] - ImageBitmap tracks ImageOrientation instead of hard flips, a=testonly
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7b24d6b85a42
[wpt PR 28205] - ImageBitmap tracks ImageOrientation instead of hard flips, a=testonly
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1587b8a42938
[wpt PR 28205] - ImageBitmap tracks ImageOrientation instead of hard flips, a=testonly
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 89 Branch
You need to log in before you can comment on or make changes to this bug.