mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Eliminate use of allow(dead_code) in window.rs
This commit is contained in:
parent
0d792ce455
commit
3b42eb31fb
1 changed files with 0 additions and 19 deletions
|
@ -44,7 +44,6 @@ const GRALLOC_USAGE_HW_FB: c_int = 0x00001000;
|
||||||
// system/core/include/cutils/native_handle.h
|
// system/core/include/cutils/native_handle.h
|
||||||
|
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
#[allow(dead_code)]
|
|
||||||
pub struct native_handle {
|
pub struct native_handle {
|
||||||
version: c_int,
|
version: c_int,
|
||||||
numFds: c_int,
|
numFds: c_int,
|
||||||
|
@ -55,7 +54,6 @@ pub struct native_handle {
|
||||||
// system/core/include/system/window.h
|
// system/core/include/system/window.h
|
||||||
|
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
#[allow(dead_code)]
|
|
||||||
pub struct ANativeBase {
|
pub struct ANativeBase {
|
||||||
magic: u32,
|
magic: u32,
|
||||||
version: u32,
|
version: u32,
|
||||||
|
@ -65,7 +63,6 @@ pub struct ANativeBase {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
#[allow(dead_code)]
|
|
||||||
pub struct ANativeWindowBuffer {
|
pub struct ANativeWindowBuffer {
|
||||||
common: ANativeBase,
|
common: ANativeBase,
|
||||||
width: c_int,
|
width: c_int,
|
||||||
|
@ -79,7 +76,6 @@ pub struct ANativeWindowBuffer {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
#[allow(dead_code)]
|
|
||||||
pub struct ANativeWindow {
|
pub struct ANativeWindow {
|
||||||
common: ANativeBase,
|
common: ANativeBase,
|
||||||
flags: u32,
|
flags: u32,
|
||||||
|
@ -107,13 +103,11 @@ pub struct ANativeWindow {
|
||||||
// hardware/libhardware/include/hardware/hardware.h
|
// hardware/libhardware/include/hardware/hardware.h
|
||||||
|
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
#[allow(dead_code)]
|
|
||||||
pub struct hw_module_methods {
|
pub struct hw_module_methods {
|
||||||
open: extern fn(*const hw_module, *const c_char, *mut *const hw_device) -> c_int,
|
open: extern fn(*const hw_module, *const c_char, *mut *const hw_device) -> c_int,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
#[allow(dead_code)]
|
|
||||||
pub struct hw_module {
|
pub struct hw_module {
|
||||||
tag: u32,
|
tag: u32,
|
||||||
module_api_version: u16,
|
module_api_version: u16,
|
||||||
|
@ -127,7 +121,6 @@ pub struct hw_module {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
#[allow(dead_code)]
|
|
||||||
pub struct hw_device {
|
pub struct hw_device {
|
||||||
tag: u32,
|
tag: u32,
|
||||||
version: u32,
|
version: u32,
|
||||||
|
@ -137,7 +130,6 @@ pub struct hw_device {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[link(name = "hardware")]
|
#[link(name = "hardware")]
|
||||||
#[allow(dead_code)]
|
|
||||||
extern {
|
extern {
|
||||||
fn hw_get_module(id: *const c_char, module: *mut *const hw_module) -> c_int;
|
fn hw_get_module(id: *const c_char, module: *mut *const hw_module) -> c_int;
|
||||||
}
|
}
|
||||||
|
@ -145,7 +137,6 @@ extern {
|
||||||
// hardware/libhardware/include/hardware/hwcomposer.h
|
// hardware/libhardware/include/hardware/hwcomposer.h
|
||||||
|
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
#[allow(dead_code)]
|
|
||||||
pub struct hwc_color {
|
pub struct hwc_color {
|
||||||
r: u8,
|
r: u8,
|
||||||
g: u8,
|
g: u8,
|
||||||
|
@ -154,7 +145,6 @@ pub struct hwc_color {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
#[allow(dead_code)]
|
|
||||||
pub struct hwc_rect {
|
pub struct hwc_rect {
|
||||||
left: c_int,
|
left: c_int,
|
||||||
top: c_int,
|
top: c_int,
|
||||||
|
@ -163,7 +153,6 @@ pub struct hwc_rect {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
#[allow(dead_code)]
|
|
||||||
pub struct hwc_region {
|
pub struct hwc_region {
|
||||||
numRects: i32,
|
numRects: i32,
|
||||||
rects: *const hwc_rect,
|
rects: *const hwc_rect,
|
||||||
|
@ -178,7 +167,6 @@ const HWC_BLIT: i32 = 4;
|
||||||
const HWC_SKIP_LAYER: u32 = 1;
|
const HWC_SKIP_LAYER: u32 = 1;
|
||||||
|
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
#[allow(dead_code)]
|
|
||||||
pub struct hwc_layer {
|
pub struct hwc_layer {
|
||||||
compositionType: i32,
|
compositionType: i32,
|
||||||
hints: u32,
|
hints: u32,
|
||||||
|
@ -197,7 +185,6 @@ pub struct hwc_layer {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
#[allow(dead_code)]
|
|
||||||
pub struct hwc_display_contents {
|
pub struct hwc_display_contents {
|
||||||
retireFenceFd: c_int,
|
retireFenceFd: c_int,
|
||||||
// HWC 1.0 not supported
|
// HWC 1.0 not supported
|
||||||
|
@ -209,7 +196,6 @@ pub struct hwc_display_contents {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
#[allow(dead_code)]
|
|
||||||
pub struct hwc_procs {
|
pub struct hwc_procs {
|
||||||
invalidate: extern fn(*const hwc_procs),
|
invalidate: extern fn(*const hwc_procs),
|
||||||
vsync: extern fn(*const hwc_procs, c_int, i64),
|
vsync: extern fn(*const hwc_procs, c_int, i64),
|
||||||
|
@ -224,7 +210,6 @@ const HWC_DISPLAY_DPI_X: u32 = 4;
|
||||||
const HWC_DISPLAY_DPI_Y: u32 = 5;
|
const HWC_DISPLAY_DPI_Y: u32 = 5;
|
||||||
|
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
#[allow(dead_code)]
|
|
||||||
pub struct hwc_composer_device {
|
pub struct hwc_composer_device {
|
||||||
common: hw_device,
|
common: hw_device,
|
||||||
prepare: extern fn(*mut hwc_composer_device, size_t, *mut *mut hwc_display_contents) -> c_int,
|
prepare: extern fn(*mut hwc_composer_device, size_t, *mut *mut hwc_display_contents) -> c_int,
|
||||||
|
@ -242,7 +227,6 @@ pub struct hwc_composer_device {
|
||||||
// system/core/include/system/graphics.h
|
// system/core/include/system/graphics.h
|
||||||
|
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
#[allow(dead_code)]
|
|
||||||
pub struct android_ycbcr {
|
pub struct android_ycbcr {
|
||||||
y: *mut c_void,
|
y: *mut c_void,
|
||||||
cb: *mut c_void,
|
cb: *mut c_void,
|
||||||
|
@ -256,7 +240,6 @@ pub struct android_ycbcr {
|
||||||
// hardware/libhardware/include/hardware/gralloc.h
|
// hardware/libhardware/include/hardware/gralloc.h
|
||||||
|
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
#[allow(dead_code)]
|
|
||||||
pub struct gralloc_module {
|
pub struct gralloc_module {
|
||||||
common: hw_module,
|
common: hw_module,
|
||||||
registerBuffer: extern fn(*const gralloc_module, *const native_handle) -> c_int,
|
registerBuffer: extern fn(*const gralloc_module, *const native_handle) -> c_int,
|
||||||
|
@ -269,7 +252,6 @@ pub struct gralloc_module {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
#[allow(dead_code)]
|
|
||||||
pub struct alloc_device {
|
pub struct alloc_device {
|
||||||
common: hw_device,
|
common: hw_device,
|
||||||
allocSize: extern fn(*mut alloc_device, c_int, c_int, c_int, c_int, *mut *const native_handle, *mut c_int, c_int) -> c_int,
|
allocSize: extern fn(*mut alloc_device, c_int, c_int, c_int, c_int, *mut *const native_handle, *mut c_int, c_int) -> c_int,
|
||||||
|
@ -280,7 +262,6 @@ pub struct alloc_device {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
#[allow(dead_code)]
|
|
||||||
pub struct GonkNativeWindow {
|
pub struct GonkNativeWindow {
|
||||||
window: ANativeWindow,
|
window: ANativeWindow,
|
||||||
set_usage: extern fn(*mut GonkNativeWindow, c_int) -> c_int,
|
set_usage: extern fn(*mut GonkNativeWindow, c_int) -> c_int,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue