mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 02:25:23 +00:00
crosvm: fix build with --no-default-feature
Fix a warning that would prevent `presubmit --all` to pass. BUG=None TEST=cargo build --verbose --no-default-features Change-Id: Iff80e5dd49b284cf20c2dd119d0b985317962a54 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3715086 Reviewed-by: Junichi Uekawa <uekawa@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Alexandre Courbot <acourbot@chromium.org> Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org>
This commit is contained in:
parent
8062587362
commit
f9b74bfa18
1 changed files with 1 additions and 0 deletions
|
@ -333,6 +333,7 @@ impl TouchDeviceOption {
|
|||
/// When a user specifies the parameters for a touch device, width and height are optional.
|
||||
/// If the width and height are missing, default values are used. Default values can be set
|
||||
/// dynamically, for example from the display sizes specified by the gpu argument.
|
||||
#[cfg(feature = "gpu")]
|
||||
pub fn set_default_size(&mut self, width: u32, height: u32) {
|
||||
self.default_width = width;
|
||||
self.default_height = height;
|
||||
|
|
Loading…
Reference in a new issue