changelogs/SkiaSharp/2.88.0/SkiaSharp.md
Assembly Version Changed: 2.88.0.0 vs 2.80.0.0
Added value:
Direct3D = 4,
Modified base type:
-SkiaSharp.SKObject
+SkiaSharp.GRRecordingContext
Added methods:
protected override void DisposeNative ();
public void Flush (bool submit, bool synchronous);
public void Submit (bool synchronous);
Added properties:
public uint ImageUsageFlags { get; set; }
public uint SampleCount { get; set; }
public uint SharingMode { get; set; }
Obsoleted properties:
[Obsolete ()]
public bool IsVolatile { get; set; }
Added methods:
public void Clear (SKColorF color);
public void DrawColor (SKColorF color, SKBlendMode mode);
Obsoleted properties:
[Obsolete ("Use DisplayP3 instead.")]
public static SKColorSpaceXyz Dcip3 { get; }
Added property:
public static SKColorSpaceXyz DisplayP3 { get; }
Added values:
Bgr101010x = 20,
Bgra1010102 = 19,
Added methods:
public SKImage ApplyImageFilter (GRContext context, SKImageFilter filter, SKRectI subset, SKRectI clipBounds, out SKRectI outSubset, out SKPointI outOffset);
public SKImage ApplyImageFilter (GRRecordingContext context, SKImageFilter filter, SKRectI subset, SKRectI clipBounds, out SKRectI outSubset, out SKPointI outOffset);
public static SKImage FromAdoptedTexture (GRRecordingContext context, GRBackendTexture texture, SKColorType colorType);
public static SKImage FromAdoptedTexture (GRRecordingContext context, GRBackendTexture texture, GRSurfaceOrigin origin, SKColorType colorType);
public static SKImage FromAdoptedTexture (GRRecordingContext context, GRBackendTexture texture, GRSurfaceOrigin origin, SKColorType colorType, SKAlphaType alpha);
public static SKImage FromAdoptedTexture (GRRecordingContext context, GRBackendTexture texture, GRSurfaceOrigin origin, SKColorType colorType, SKAlphaType alpha, SKColorSpace colorspace);
public static SKImage FromTexture (GRRecordingContext context, GRBackendTexture texture, SKColorType colorType);
public static SKImage FromTexture (GRRecordingContext context, GRBackendTexture texture, GRSurfaceOrigin origin, SKColorType colorType);
public static SKImage FromTexture (GRRecordingContext context, GRBackendTexture texture, GRSurfaceOrigin origin, SKColorType colorType, SKAlphaType alpha);
public static SKImage FromTexture (GRRecordingContext context, GRBackendTexture texture, GRSurfaceOrigin origin, SKColorType colorType, SKAlphaType alpha, SKColorSpace colorspace);
public static SKImage FromTexture (GRRecordingContext context, GRBackendTexture texture, GRSurfaceOrigin origin, SKColorType colorType, SKAlphaType alpha, SKColorSpace colorspace, SKImageTextureReleaseDelegate releaseProc);
public static SKImage FromTexture (GRRecordingContext context, GRBackendTexture texture, GRSurfaceOrigin origin, SKColorType colorType, SKAlphaType alpha, SKColorSpace colorspace, SKImageTextureReleaseDelegate releaseProc, object releaseContext);
public bool IsValid (GRRecordingContext context);
Added methods:
public static SKImageFilter CreateDilate (float radiusX, float radiusY, SKImageFilter input, SKImageFilter.CropRect cropRect);
public static SKImageFilter CreateErode (float radiusX, float radiusY, SKImageFilter input, SKImageFilter.CropRect cropRect);
Added method:
public bool Erase (SKColorF color, SKColorSpace colorspace, SKRectI subset);
Added property:
public GRRecordingContext Context { get; }
Obsoleted methods:
[Obsolete ("Use Create(GRContext, GRBackendTexture, SKColorType) instead.")]
public static SKSurface CreateAsRenderTarget (GRContext context, GRBackendTexture texture, SKColorType colorType);
[Obsolete ("Use Create(GRContext, GRBackendTexture, GRSurfaceOrigin, SKColorType) instead.")]
public static SKSurface CreateAsRenderTarget (GRContext context, GRBackendTexture texture, GRSurfaceOrigin origin, SKColorType colorType);
[Obsolete ("Use Create(GRContext, GRBackendTexture, SKColorType, SKSurfaceProperties) instead.")]
public static SKSurface CreateAsRenderTarget (GRContext context, GRBackendTexture texture, SKColorType colorType, SKSurfaceProperties props);
[Obsolete ("Use Create(GRContext, GRBackendTexture, GRSurfaceOrigin, SKColorType, SKSurfaceProperties) instead.")]
public static SKSurface CreateAsRenderTarget (GRContext context, GRBackendTexture texture, GRSurfaceOrigin origin, SKColorType colorType, SKSurfaceProperties props);
[Obsolete ("Use Create(GRContext, GRBackendTexture, GRSurfaceOrigin, int, SKColorType) instead.")]
public static SKSurface CreateAsRenderTarget (GRContext context, GRBackendTexture texture, GRSurfaceOrigin origin, int sampleCount, SKColorType colorType);
[Obsolete ("Use Create(GRContext, GRBackendTexture, GRSurfaceOrigin, int, SKColorType, SKColorSpace) instead.")]
public static SKSurface CreateAsRenderTarget (GRContext context, GRBackendTexture texture, GRSurfaceOrigin origin, int sampleCount, SKColorType colorType, SKColorSpace colorspace);
[Obsolete ("Use Create(GRContext, GRBackendTexture, GRSurfaceOrigin, int, SKColorType, SKSurfaceProperties) instead.")]
public static SKSurface CreateAsRenderTarget (GRContext context, GRBackendTexture texture, GRSurfaceOrigin origin, int sampleCount, SKColorType colorType, SKSurfaceProperties props);
[Obsolete ("Use Create(GRContext, GRBackendTexture, GRSurfaceOrigin, int, SKColorType, SKColorSpace, SKSurfaceProperties) instead.")]
public static SKSurface CreateAsRenderTarget (GRContext context, GRBackendTexture texture, GRSurfaceOrigin origin, int sampleCount, SKColorType colorType, SKColorSpace colorspace, SKSurfaceProperties props);
Added methods:
public static SKSurface Create (GRRecordingContext context, GRBackendRenderTarget renderTarget, SKColorType colorType);
public static SKSurface Create (GRRecordingContext context, GRBackendTexture texture, SKColorType colorType);
public static SKSurface Create (GRRecordingContext context, bool budgeted, SKImageInfo info);
public static SKSurface Create (GRRecordingContext context, GRBackendRenderTarget renderTarget, GRSurfaceOrigin origin, SKColorType colorType);
public static SKSurface Create (GRRecordingContext context, GRBackendRenderTarget renderTarget, SKColorType colorType, SKSurfaceProperties props);
public static SKSurface Create (GRRecordingContext context, GRBackendTexture texture, GRSurfaceOrigin origin, SKColorType colorType);
public static SKSurface Create (GRRecordingContext context, GRBackendTexture texture, SKColorType colorType, SKSurfaceProperties props);
public static SKSurface Create (GRRecordingContext context, bool budgeted, SKImageInfo info, SKSurfaceProperties props);
public static SKSurface Create (GRRecordingContext context, bool budgeted, SKImageInfo info, int sampleCount);
public static SKSurface Create (GRRecordingContext context, GRBackendRenderTarget renderTarget, GRSurfaceOrigin origin, SKColorType colorType, SKColorSpace colorspace);
public static SKSurface Create (GRRecordingContext context, GRBackendRenderTarget renderTarget, GRSurfaceOrigin origin, SKColorType colorType, SKSurfaceProperties props);
public static SKSurface Create (GRRecordingContext context, GRBackendTexture texture, GRSurfaceOrigin origin, SKColorType colorType, SKSurfaceProperties props);
public static SKSurface Create (GRRecordingContext context, GRBackendTexture texture, GRSurfaceOrigin origin, int sampleCount, SKColorType colorType);
public static SKSurface Create (GRRecordingContext context, bool budgeted, SKImageInfo info, int sampleCount, GRSurfaceOrigin origin);
public static SKSurface Create (GRRecordingContext context, bool budgeted, SKImageInfo info, int sampleCount, SKSurfaceProperties props);
public static SKSurface Create (GRRecordingContext context, GRBackendRenderTarget renderTarget, GRSurfaceOrigin origin, SKColorType colorType, SKColorSpace colorspace, SKSurfaceProperties props);
public static SKSurface Create (GRRecordingContext context, GRBackendTexture texture, GRSurfaceOrigin origin, int sampleCount, SKColorType colorType, SKColorSpace colorspace);
public static SKSurface Create (GRRecordingContext context, GRBackendTexture texture, GRSurfaceOrigin origin, int sampleCount, SKColorType colorType, SKSurfaceProperties props);
public static SKSurface Create (GRRecordingContext context, GRBackendTexture texture, GRSurfaceOrigin origin, int sampleCount, SKColorType colorType, SKColorSpace colorspace, SKSurfaceProperties props);
public static SKSurface Create (GRRecordingContext context, bool budgeted, SKImageInfo info, int sampleCount, GRSurfaceOrigin origin, SKSurfaceProperties props, bool shouldCreateWithMips);
public void Flush (bool submit, bool synchronous);
public class GRRecordingContext : SkiaSharp.SKObject, System.IDisposable {
// properties
public GRBackend Backend { get; }
// methods
public int GetMaxSurfaceSampleCount (SKColorType colorType);
}
public class SKRuntimeEffect : SkiaSharp.SKObject, System.IDisposable {
// properties
public System.Collections.Generic.IReadOnlyList<string> Children { get; }
public int UniformSize { get; }
public System.Collections.Generic.IReadOnlyList<string> Uniforms { get; }
// methods
public static SKRuntimeEffect Create (string sksl, out string errors);
public SKColorFilter ToColorFilter ();
public SKColorFilter ToColorFilter (SKRuntimeEffectUniforms uniforms);
public SKColorFilter ToColorFilter (SKRuntimeEffectUniforms uniforms, SKRuntimeEffectChildren children);
public SKShader ToShader (bool isOpaque);
public SKShader ToShader (bool isOpaque, SKRuntimeEffectUniforms uniforms);
public SKShader ToShader (bool isOpaque, SKRuntimeEffectUniforms uniforms, SKRuntimeEffectChildren children);
public SKShader ToShader (bool isOpaque, SKRuntimeEffectUniforms uniforms, SKRuntimeEffectChildren children, SKMatrix localMatrix);
}
public class SKRuntimeEffectChildren : System.Collections.Generic.IEnumerable<string>, System.Collections.IEnumerable {
// constructors
public SKRuntimeEffectChildren (SKRuntimeEffect effect);
// properties
public int Count { get; }
public SKShader Item { set; }
public System.Collections.Generic.IReadOnlyList<string> Names { get; }
// methods
public void Add (string name, SKShader value);
public bool Contains (string name);
public virtual System.Collections.Generic.IEnumerator<string> GetEnumerator ();
public void Reset ();
public SKShader[] ToArray ();
}
public struct SKRuntimeEffectUniform {
// properties
public static SKRuntimeEffectUniform Empty { get; }
public bool IsEmpty { get; }
public int Size { get; }
// methods
public void WriteTo (System.Span<byte> data);
public static SKRuntimeEffectUniform op_Implicit (SKMatrix value);
public static SKRuntimeEffectUniform op_Implicit (System.ReadOnlySpan<float> value);
public static SKRuntimeEffectUniform op_Implicit (float value);
public static SKRuntimeEffectUniform op_Implicit (float[] value);
public static SKRuntimeEffectUniform op_Implicit (float[][] value);
public static SKRuntimeEffectUniform op_Implicit (System.Span<float> value);
}
public class SKRuntimeEffectUniforms : System.Collections.Generic.IEnumerable<string>, System.Collections.IEnumerable {
// constructors
public SKRuntimeEffectUniforms (SKRuntimeEffect effect);
// properties
public int Count { get; }
public SKRuntimeEffectUniform Item { set; }
public System.Collections.Generic.IReadOnlyList<string> Names { get; }
// methods
public void Add (string name, SKRuntimeEffectUniform value);
public bool Contains (string name);
public virtual System.Collections.Generic.IEnumerator<string> GetEnumerator ();
public void Reset ();
public SKData ToData ();
}
public interface IPlatformLock {
// methods
public virtual void EnterReadLock ();
public virtual void EnterUpgradeableReadLock ();
public virtual void EnterWriteLock ();
public virtual void ExitReadLock ();
public virtual void ExitUpgradeableReadLock ();
public virtual void ExitWriteLock ();
}
public static class PlatformLock {
// properties
public static System.Func<IPlatformLock> Factory { get; set; }
// methods
public static IPlatformLock Create ();
public static IPlatformLock DefaultFactory ();
}