pub struct CompositionDrawingSurface(/* private fields */);Expand description
A composition surface whose content is set from imported GPU images.
Implementations§
Source§impl CompositionDrawingSurface
impl CompositionDrawingSurface
Sourcepub fn update_with_keyed_mutex_async(
&self,
image: &dyn ICompositionImportedGpuImage,
acquire_index: u32,
release_index: u32,
) -> ServerJobTask<()>
pub fn update_with_keyed_mutex_async( &self, image: &dyn ICompositionImportedGpuImage, acquire_index: u32, release_index: u32, ) -> ServerJobTask<()>
Updates the surface contents using an imported memory image using a keyed mutex as the means of synchronization
acquire_index is the mutex key to wait for before accessing the
image, release_index the mutex key to release for after accessing
the image. Returns a task that completes when update operation is
completed and user code is free to destroy or dispose the image.
Sourcepub fn update_with_semaphores_async(
&self,
image: &dyn ICompositionImportedGpuImage,
wait_for_semaphore: &dyn ICompositionImportedGpuSemaphore,
signal_semaphore: &dyn ICompositionImportedGpuSemaphore,
) -> ServerJobTask<()>
pub fn update_with_semaphores_async( &self, image: &dyn ICompositionImportedGpuImage, wait_for_semaphore: &dyn ICompositionImportedGpuSemaphore, signal_semaphore: &dyn ICompositionImportedGpuSemaphore, ) -> ServerJobTask<()>
Updates the surface contents using an imported memory image using a semaphore pair as the means of synchronization
wait_for_semaphore is the semaphore to wait for before accessing
the image, signal_semaphore the semaphore to signal after
accessing the image.
Sourcepub fn update_with_timeline_semaphores_async(
&self,
image: &dyn ICompositionImportedGpuImage,
wait_for_semaphore: &dyn ICompositionImportedGpuSemaphore,
wait_for_value: u64,
signal_semaphore: &dyn ICompositionImportedGpuSemaphore,
signal_value: u64,
) -> ServerJobTask<()>
pub fn update_with_timeline_semaphores_async( &self, image: &dyn ICompositionImportedGpuImage, wait_for_semaphore: &dyn ICompositionImportedGpuSemaphore, wait_for_value: u64, signal_semaphore: &dyn ICompositionImportedGpuSemaphore, signal_value: u64, ) -> ServerJobTask<()>
Updates the surface contents using an imported memory image using a semaphore pair as the means of synchronization
The semaphores are timeline semaphores: wait_for_value is the value
to wait for before accessing the image, signal_value the value to
signal after accessing it.
Sourcepub fn update_async(
&self,
image: &dyn ICompositionImportedGpuImage,
) -> ServerJobTask<()>
pub fn update_async( &self, image: &dyn ICompositionImportedGpuImage, ) -> ServerJobTask<()>
Updates the surface contents using an unspecified automatic means of synchronization provided by the underlying platform
pub fn dispose(&self)
Trait Implementations§
Source§impl Clone for CompositionDrawingSurface
impl Clone for CompositionDrawingSurface
Source§impl Deref for CompositionDrawingSurface
impl Deref for CompositionDrawingSurface
Source§type Target = Rc<CompositionSurface>
type Target = Rc<CompositionSurface>
Source§fn deref(&self) -> &Rc<CompositionSurface>
fn deref(&self) -> &Rc<CompositionSurface>
Auto Trait Implementations§
impl !RefUnwindSafe for CompositionDrawingSurface
impl !Send for CompositionDrawingSurface
impl !Sync for CompositionDrawingSurface
impl !UnwindSafe for CompositionDrawingSurface
impl Freeze for CompositionDrawingSurface
impl Unpin for CompositionDrawingSurface
impl UnsafeUnpin for CompositionDrawingSurface
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
affects_render, metadata
overrides). Read more