mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 18:38:01 +00:00
Define `SharedMemory` trait, implement it for `base::SharedMemory`, and use it for `ShmStreamSource::new_stream()` so that we can pass on `base::SharedMemory` without exposing `base` to libcras. Note that we implement the trait for `base::SharedMemory` in `base` crate instead of in `audio_streams`, which means `base` depends on `audio_streams`, because `audio_streams` is available for non-crosvm projects while `base` isn't. The corresponding CRAS change is crrev.com/c/3251123. BUG=b:194137301, b:204444445 TEST=cargo test --all-features Change-Id: I2430d9881d98032592c9f9202d70deb22e006f63 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3251820 Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Chirantan Ekbote <chirantan@chromium.org> Reviewed-by: Chih-Yang Hsia <paulhsia@chromium.org> Commit-Queue: Keiichi Watanabe <keiichiw@chromium.org> |
||
---|---|---|
.. | ||
src | ||
.build_test_serial | ||
Cargo.toml |