mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 02:25:23 +00:00
7f02059afc
The current way for building a codec device is to call the corresponding constructor method of the backend we want to use. However doing this forces us to pass the resource bridge to these constructors, introducing dependencies from the backend to parts of the code that are not used otherwise. Switch the construction method to one constructor per backend, which only takes the arguments relevant to the backend, and one device constructor that takes the backend to use as parameter. BUG=b:161774071 BUG=b:169295147 TEST=Android Youtube plays properly on Hatch. Change-Id: I493f421e982a1d2ba8292a69bae575afeee17e4c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3026349 Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Alexandre Courbot <acourbot@chromium.org> Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org> |
||
---|---|---|
.. | ||
src | ||
.build_test_serial | ||
Cargo.toml |