Bug 1768350 [wpt PR 33984] - Revert "Use mojo_base.mojom.ReadOnlySharedMemoryRegion...
commit932a7e1334570ebb3905dde2721fcb370df0edaa
authorDaniel Cheng <dcheng@chromium.org>
Mon, 16 May 2022 10:04:53 +0000 (16 10:04 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Tue, 17 May 2022 16:14:23 +0000 (17 16:14 +0000)
tree3e7320c3d4a54a78fc99a4191815de3c9548685b
parent2a245bc0805a16c25e955af962fbe444af9cc163
Bug 1768350 [wpt PR 33984] - Revert "Use mojo_base.mojom.ReadOnlySharedMemoryRegion in device sensors.", a=testonly

Automatic update from web-platform-tests
Revert "Use mojo_base.mojom.ReadOnlySharedMemoryRegion in device sensors."

This reverts commit 076ef25936e7142c67e21d9295dd92a139164e71.

Reason for revert: prereq for reverting https://crrev.com/c/3625893

Original change's description:
> Use mojo_base.mojom.ReadOnlySharedMemoryRegion in device sensors.
>
> Unfortunately, the CL largely relies on using static_cast<const T*>
> instead of the safer GetMemoryAs<T> helper, since GetMemoryAs<T> requires
> that device::SensorReadingSharedBuffer is trivially copyable.
>
> Bug: 1306363
> Change-Id: I91d048450bf7ba341065e6175c9928be34e45946
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3621355
> Commit-Queue: Daniel Cheng <dcheng@chromium.org>
> Reviewed-by: Reilly Grant <reillyg@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1000672}

Bug: 1306363
Change-Id: I10fe4e9eacd16c4016e71410eaa7aa2597a2578b
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3632842
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Owners-Override: Daniel Cheng <dcheng@chromium.org>
Auto-Submit: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1000750}

--

wpt-commits: 4e0796bcd669c3caf123d5a8f4a2d9acf9e12393
wpt-pr: 33984
testing/web-platform/tests/resources/chromium/generic_sensor_mocks.js