Edit

SKGraphiteRecorder Class

Definition

Records drawing commands issued against Graphite-backed surfaces and snapshots them into recordings for insertion into a SKGraphiteContext.

public class SKGraphiteRecorder : SkiaSharp.SKObject
Inheritance
SKGraphiteRecorder

Remarks

Create a recorder from a context with CreateRecorder(Int64). Draw into Graphite-backed surfaces created for the recorder, call Snap() to capture the work as a SKGraphiteRecording, then insert and submit the recording through the context.

A recorder is not thread-safe; use one recorder per thread. This type wraps a native Skia resource and implements IDisposable.

Properties

Name Description
Backend

Gets the graphics backend that this recorder uses.

Handle

Gets or sets the handle to the underlying native object.

(Inherited from SKObject)
IgnorePublicDispose

Gets a value indicating whether the call the public Dispose() should be no-op.

(Inherited from SKNativeObject)
IsDisposed

Gets a value indicating whether the object has already been disposed.

(Inherited from SKNativeObject)
MaxTextureSize

Gets the maximum texture dimension supported by the recorder's backend, in pixels.

OwnsHandle

Gets or sets a value indicating whether this object owns its handle and should destroy the native object when it is disposed.

(Inherited from SKNativeObject)

Methods

Name Description
CreateBackendTexture(Int32, Int32, SKGraphiteTextureInfo)

Creates a new backend texture that is owned by the recorder's context.

DeleteBackendTexture(SKGraphiteBackendTexture)

Deletes a backend texture that was created by this recorder.

Dispose()

Releases all resources used by this SKNativeObject.

(Inherited from SKNativeObject)
Dispose(Boolean)

Releases the unmanaged resources used by the SKObject and optionally releases the managed resources.

(Inherited from SKObject)
DisposeInternal()

Triggers a dispose, ignoring the value of IgnorePublicDispose.

(Inherited from SKNativeObject)
DisposeManaged()

Implemented by derived SKObject types to destroy any managed objects.

(Inherited from SKObject)
DisposeNative()

Releases the native resources used by the recorder.

DisposeUnownedManaged()

Implemented by derived SKObject types to dispose managed objects that are not owned by this instance.

(Inherited from SKObject)
Snap()

Captures the commands recorded so far into a new recording and resets the recorder for further recording.

Applies to