#[repr(u8)]pub enum ClientCompositionOpcode {
ClientUsePrimary = 0,
ClientMergeBase = 1,
ClientMergeSrc = 2,
ClientFrameScale = 3,
ClientSrcFrame = 4,
ClientTransform = 5,
ClientColorConversion = 6,
ClientAlpha = 7,
}
Variants§
ClientUsePrimary = 0
The client should convert the corresponding layer to a primary layer.
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 Decode<ClientCompositionOpcode> for ClientCompositionOpcode
impl Decode<ClientCompositionOpcode> for ClientCompositionOpcode
source§impl Encode<ClientCompositionOpcode> for ClientCompositionOpcode
impl Encode<ClientCompositionOpcode> 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§fn eq(&self, other: &ClientCompositionOpcode) -> bool
fn eq(&self, other: &ClientCompositionOpcode) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ClientCompositionOpcode
impl PartialOrd for ClientCompositionOpcode
source§fn partial_cmp(&self, other: &ClientCompositionOpcode) -> Option<Ordering>
fn partial_cmp(&self, other: &ClientCompositionOpcode) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TypeMarker for ClientCompositionOpcode
impl TypeMarker for ClientCompositionOpcode
§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
§type Borrowed<'a> = ClientCompositionOpcode
type Borrowed<'a> = ClientCompositionOpcode
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more