Edit

SKGraphiteContext.CreateRecorder Method

Definition

Overloads

Name Description
CreateRecorder(Int64)

Creates a new recorder associated with this context.

CreateRecorder(Int64, SKGraphiteFindOrCreateImageDelegate, Action)

Creates a new recorder associated with this context, using the specified callback to provide Graphite-backed images.

CreateRecorder(Int64)

Creates a new recorder associated with this context.

public SkiaSharp.SKGraphiteRecorder CreateRecorder(long recorderBudgetBytes = -1);

Parameters

recorderBudgetBytes
Int64

The GPU memory budget for the recorder, in bytes, or -1 to use the Skia default.

Returns

A new SKGraphiteRecorder, which the caller must dispose before disposing this context, or null if it could not be created.

Applies to

CreateRecorder(Int64, SKGraphiteFindOrCreateImageDelegate, Action)

Creates a new recorder associated with this context, using the specified callback to provide Graphite-backed images.

public SkiaSharp.SKGraphiteRecorder CreateRecorder(long recorderBudgetBytes, SkiaSharp.SKGraphiteFindOrCreateImageDelegate findOrCreate, Action findOrCreateDispose = default);

Parameters

recorderBudgetBytes
Int64

The GPU memory budget for the recorder, in bytes, or -1 to use the Skia default.

findOrCreate
SKGraphiteFindOrCreateImageDelegate

The callback that finds or uploads a Graphite-backed image for a source image, or null for none.

findOrCreateDispose
Action

An optional cleanup action invoked before the recorder is destroyed, or null for none.

Returns

A new SKGraphiteRecorder, which the caller must dispose before disposing this context, or null if it could not be created.

Applies to