Trait ppapi::ppb::ImageDataIfExperimental [-]  [+] [src]

pub trait ImageDataIf {
    fn native_image_data_format(&self) -> PP_ImageDataFormat;
    fn is_image_data_format_supported(&self, format: PP_ImageDataFormat) -> bool;
    fn create(&self, instance: PP_Instance, format: PP_ImageDataFormat, size: PP_Size, init_to_zero: bool) -> Option<PP_Resource>;
    fn describe(&self, img: PP_Resource) -> Option<Struct_PP_ImageDataDesc>;
    fn map(&self, img: &PP_Resource) -> *mut c_void;
    fn unmap(&self, img: &PP_Resource);
}

Required Methods

fn native_image_data_format(&self) -> PP_ImageDataFormat

fn is_image_data_format_supported(&self, format: PP_ImageDataFormat) -> bool

fn create(&self, instance: PP_Instance, format: PP_ImageDataFormat, size: PP_Size, init_to_zero: bool) -> Option<PP_Resource>

fn describe(&self, img: PP_Resource) -> Option<Struct_PP_ImageDataDesc>

fn map(&self, img: &PP_Resource) -> *mut c_void

fn unmap(&self, img: &PP_Resource)

Implementors