#[repr(u8)]pub enum ClientCompositionOpcode {
ClientUseImage = 0,
ClientMergeBase = 1,
ClientMergeSrc = 2,
ClientFrameScale = 3,
ClientSrcFrame = 4,
ClientTransform = 5,
ClientColorConversion = 6,
ClientAlpha = 7,
}
Variants§
ClientUseImage = 0
The client should configure the layer to use a source image.
ClientMergeBase = 1
The client should compose all layers with CLIENT_MERGE_BASE and CLIENT_MERGE_SRC into a new, single primary layer at the CLIENT_MERGE_BASE layer’s z-order. The driver must accept a fullscreen layer with the default pixel format, but may accept other layer parameters.
CLIENT_MERGE_BASE will only be set on one layer per display.
ClientMergeSrc = 2
See CLIENT_MERGE_BASE.
ClientFrameScale = 3
The client should provide a new image produced by scaling the source image such that the dimensions of the new image’s src_frame and dest_frame are equal to the dimensions of the current image’s dest_frame.
ClientSrcFrame = 4
The client should provide a new image produced by clipping the source image to the region specified by src_frame.
ClientTransform = 5
The client should provide a new image produced by applying the desired transformation, so that TRANSFORM_IDENTITY can be specified.
ClientColorConversion = 6
The client should apply the color conversion itself.
ClientAlpha = 7
The client should apply the alpha itself.
Implementations§
Source§impl ClientCompositionOpcode
impl ClientCompositionOpcode
pub fn from_primitive(prim: u8) -> Option<Self>
pub const fn into_primitive(self) -> u8
pub fn is_unknown(&self) -> bool
is_unknown
Trait Implementations§
Source§impl Clone for ClientCompositionOpcode
impl Clone for ClientCompositionOpcode
Source§fn clone(&self) -> ClientCompositionOpcode
fn clone(&self) -> ClientCompositionOpcode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ClientCompositionOpcode
impl Debug for ClientCompositionOpcode
Source§impl<D: ResourceDialect> Decode<ClientCompositionOpcode, D> for ClientCompositionOpcode
impl<D: ResourceDialect> Decode<ClientCompositionOpcode, D> for ClientCompositionOpcode
Source§impl<D: ResourceDialect> Encode<ClientCompositionOpcode, D> for ClientCompositionOpcode
impl<D: ResourceDialect> Encode<ClientCompositionOpcode, D> for ClientCompositionOpcode
Source§impl Hash for ClientCompositionOpcode
impl Hash for ClientCompositionOpcode
Source§impl Ord for ClientCompositionOpcode
impl Ord for ClientCompositionOpcode
Source§fn cmp(&self, other: &ClientCompositionOpcode) -> Ordering
fn cmp(&self, other: &ClientCompositionOpcode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ClientCompositionOpcode
impl PartialEq for ClientCompositionOpcode
Source§impl PartialOrd for ClientCompositionOpcode
impl PartialOrd for ClientCompositionOpcode
Source§impl TypeMarker for ClientCompositionOpcode
impl TypeMarker for ClientCompositionOpcode
Source§type Owned = ClientCompositionOpcode
type Owned = ClientCompositionOpcode
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for ClientCompositionOpcode
impl ValueTypeMarker for ClientCompositionOpcode
Source§type Borrowed<'a> = ClientCompositionOpcode
type Borrowed<'a> = ClientCompositionOpcode
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Copy for ClientCompositionOpcode
impl Eq for ClientCompositionOpcode
impl StructuralPartialEq for ClientCompositionOpcode
Auto Trait Implementations§
impl Freeze for ClientCompositionOpcode
impl RefUnwindSafe for ClientCompositionOpcode
impl Send for ClientCompositionOpcode
impl Sync for ClientCompositionOpcode
impl Unpin for ClientCompositionOpcode
impl UnwindSafe for ClientCompositionOpcode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)