Class CompositionDrawingSurface
- Namespace
- Avalonia.Rendering.Composition
- Assembly
- Avalonia.Base.dll
public sealed class CompositionDrawingSurface : CompositionSurface, IDisposable
- Inheritance
-
CompositionDrawingSurface
- Implements
- Inherited Members
Methods
Dispose()
public void Dispose()
~CompositionDrawingSurface()
protected ~CompositionDrawingSurface()
UpdateAsync(ICompositionImportedGpuImage)
Updates the surface contents using an unspecified automatic means of synchronization provided by the underlying platform
public Task UpdateAsync(ICompositionImportedGpuImage image)
Parameters
image
ICompositionImportedGpuImageGPU image with new surface contents
Returns
- Task
A task that completes when update operation is completed and user code is free to destroy or dispose the image
UpdateWithKeyedMutexAsync(ICompositionImportedGpuImage, uint, uint)
Updates the surface contents using an imported memory image using a keyed mutex as the means of synchronization
public Task UpdateWithKeyedMutexAsync(ICompositionImportedGpuImage image, uint acquireIndex, uint releaseIndex)
Parameters
image
ICompositionImportedGpuImageGPU image with new surface contents
acquireIndex
uintThe mutex key to wait for before accessing the image
releaseIndex
uintThe mutex key to release for after accessing the image
Returns
- Task
A task that completes when update operation is completed and user code is free to destroy or dispose the image
UpdateWithSemaphoresAsync(ICompositionImportedGpuImage, ICompositionImportedGpuSemaphore, ICompositionImportedGpuSemaphore)
Updates the surface contents using an imported memory image using a semaphore pair as the means of synchronization
public Task UpdateWithSemaphoresAsync(ICompositionImportedGpuImage image, ICompositionImportedGpuSemaphore waitForSemaphore, ICompositionImportedGpuSemaphore signalSemaphore)
Parameters
image
ICompositionImportedGpuImageGPU image with new surface contents
waitForSemaphore
ICompositionImportedGpuSemaphoreThe semaphore to wait for before accessing the image
signalSemaphore
ICompositionImportedGpuSemaphoreThe semaphore to signal after accessing the image
Returns
- Task
A task that completes when update operation is completed and user code is free to destroy or dispose the image