mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-08 19:33:07 +00:00
gpu_display: Fix warnings
BUG=none TEST=presubmit Change-Id: I6f9d5ac3161f02b20d4b042e39bbcafc7dab8e43 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3988325 Reviewed-by: Pujun Lun <lunpujun@google.com> Reviewed-by: Noah Gold <nkgold@google.com> Auto-Submit: Vikram Auradkar <auradkar@google.com> Commit-Queue: Noah Gold <nkgold@google.com>
This commit is contained in:
parent
94dc349835
commit
8044443135
1 changed files with 4 additions and 2 deletions
|
@ -13,7 +13,6 @@ use std::ptr::null_mut;
|
|||
use anyhow::bail;
|
||||
use anyhow::Context;
|
||||
use anyhow::Result;
|
||||
use base::debug;
|
||||
use base::error;
|
||||
use base::info;
|
||||
use base::warn;
|
||||
|
@ -304,7 +303,10 @@ impl Window {
|
|||
}
|
||||
|
||||
/// Updates the rectangle in the window's client area to which gfxstream renders.
|
||||
pub fn update_virtual_display_projection(&self, projection_box: &Box2D<i32, HostWindowSpace>) {
|
||||
pub fn update_virtual_display_projection(
|
||||
&self,
|
||||
#[allow(unsed)] projection_box: &Box2D<i32, HostWindowSpace>,
|
||||
) {
|
||||
// Safe because `Window` object won't outlive the HWND.
|
||||
#[cfg(feature = "gfxstream")]
|
||||
unsafe {
|
||||
|
|
Loading…
Reference in a new issue