mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-05 18:20:34 +00:00
rutabaga_gfx: ignore unused consts warning
Annotate the THREAD_SYNC flags with allow statements so that clippy does not complain about them. BUG=None TEST=bin/clippy Change-Id: I9d9d5d5b2a5f51e3ce49c36dd7528ad677aeb30e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2638139 Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
This commit is contained in:
parent
0797a55462
commit
46844e7131
1 changed files with 2 additions and 0 deletions
|
@ -173,6 +173,7 @@ pub type RutabagaResult<T> = std::result::Result<T, RutabagaError>;
|
|||
|
||||
/// Flags for virglrenderer. Copied from virglrenderer bindings.
|
||||
const VIRGLRENDERER_USE_EGL: u32 = 1 << 0;
|
||||
#[allow(dead_code)]
|
||||
const VIRGLRENDERER_THREAD_SYNC: u32 = 1 << 1;
|
||||
const VIRGLRENDERER_USE_GLX: u32 = 1 << 2;
|
||||
const VIRGLRENDERER_USE_SURFACELESS: u32 = 1 << 3;
|
||||
|
@ -240,6 +241,7 @@ impl VirglRendererFlags {
|
|||
|
||||
/// Flags for the gfxstream renderer.
|
||||
const GFXSTREAM_RENDERER_FLAGS_USE_EGL: u32 = 1 << 0;
|
||||
#[allow(dead_code)]
|
||||
const GFXSTREAM_RENDERER_FLAGS_THREAD_SYNC: u32 = 1 << 1;
|
||||
const GFXSTREAM_RENDERER_FLAGS_USE_GLX: u32 = 1 << 2;
|
||||
const GFXSTREAM_RENDERER_FLAGS_USE_SURFACELESS: u32 = 1 << 3;
|
||||
|
|
Loading…
Reference in a new issue