Table of Contents

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 ICompositionImportedGpuImage

GPU 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 ICompositionImportedGpuImage

GPU image with new surface contents

acquireIndex uint

The mutex key to wait for before accessing the image

releaseIndex uint

The 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 ICompositionImportedGpuImage

GPU image with new surface contents

waitForSemaphore ICompositionImportedGpuSemaphore

The semaphore to wait for before accessing the image

signalSemaphore ICompositionImportedGpuSemaphore

The 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