SkiaLayerProperties

class SkiaLayerProperties(val isVsyncEnabled: Boolean = SkikoProperties.vsyncEnabled, val isVsyncFramelimitFallbackEnabled: Boolean = SkikoProperties.vsyncFramelimitFallbackEnabled, val frameBuffering: FrameBuffering = SkikoProperties.frameBuffering, val renderApi: GraphicsApi = SkikoProperties.renderApi, val adapterPriority: GpuPriority = SkikoProperties.gpuPriority)

SkiaLayerProperties is a class that represents the rendering configuration for a SkiaLayer.

Constructors

Link copied to clipboard
constructor(isVsyncEnabled: Boolean = SkikoProperties.vsyncEnabled, isVsyncFramelimitFallbackEnabled: Boolean = SkikoProperties.vsyncFramelimitFallbackEnabled, frameBuffering: FrameBuffering = SkikoProperties.frameBuffering, renderApi: GraphicsApi = SkikoProperties.renderApi, adapterPriority: GpuPriority = SkikoProperties.gpuPriority)

Properties

Link copied to clipboard

Specifies the GPU that will be selected for rendering. Default value is SkikoProperties.gpuPriority.

Link copied to clipboard
Link copied to clipboard

Specifies whether vertical synchronization (VSync) is enabled. Default value is SkikoProperties.vsyncEnabled. Setting this to true is a hint toward underlying implementation to synchronize the rendering with the display presentation. It guarantees that the frame is presented without visual artifacts like tearing in exchange for a possible latency increase.

Link copied to clipboard

Specifies whether framelimit fallback is enabled (software renderer). Default value is SkikoProperties.vsyncFramelimitFallbackEnabled.

Link copied to clipboard

Specifies the graphics API used for rendering. Default value is SkikoProperties.renderApi.

Functions

Link copied to clipboard
fun copy(isVsyncEnabled: Boolean = this.isVsyncEnabled, isVsyncFramelimitFallbackEnabled: Boolean = this.isVsyncFramelimitFallbackEnabled, renderApi: GraphicsApi = this.renderApi, adapterPriority: GpuPriority = this.adapterPriority): SkiaLayerProperties
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int