Closed Bug 1713253 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 29147 - usb: Use ReadOnlyBuffer in the rest of the Mojo interface

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox92 fixed)

RESOLVED FIXED
92 Branch
Tracking Status
firefox92 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

b'Reilly Grant <reillyg@chromium.org>' wrote:

usb: Use ReadOnlyBuffer in the rest of the Mojo interface

This change replaces the rest of the instances of array\<uint8> in Mojo
method arguments and replies with the typemapped ReadOnlyBuffer struct.
This avoids an unnecessary copy of the transferred data on both the
sending and receiving ends of the Mojo pipe.

Bug: 743121
Change-Id: I1ac823790341eefc60ff3c1ae0e2a82587e4c51c
Reviewed-on: https://chromium-review.googlesource.com/2919266
WPT-Export-Revision: 5e994d0b4f50bf78ccaddcfad6c11686eae1071e

Test result changes from PR not available.
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b964aca36f72 [wpt PR 29147] - usb: Use ReadOnlyBuffer in the rest of the Mojo interface, a=testonly
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9d0ee7d4af3a [wpt PR 29147] - usb: Use ReadOnlyBuffer in the rest of the Mojo interface, a=testonly
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 92 Branch
You need to log in before you can comment on or make changes to this bug.