LinuxSkiaLayerComponent

Platform host used by the Kotlin/Native Linux SkiaLayer.

Skiko owns the Skia and Ganesh objects while the embedding toolkit owns the native window and its event loop. Implementations must invoke requestRender on the window thread.

Properties

Link copied to clipboard
abstract val contentScale: Float

Scale from logical coordinates to physical pixels.

Link copied to clipboard

Refresh rate of the display containing this window.

Link copied to clipboard
abstract val drawableHeight: Int
Link copied to clipboard
abstract val drawableWidth: Int

Current drawable size in physical pixels.

Link copied to clipboard

Effective number of buffers exposed by the presentation API, or null when it is unknown.

Link copied to clipboard
abstract var fullscreen: Boolean
Link copied to clipboard

Native GrGLGetProc callback used to assemble Skia's OpenGL function table.

Link copied to clipboard

Context passed to openGlResolver.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Whether the host created a window buffer whose alpha channel reaches the window system.

Link copied to clipboard
abstract val windowHandle: Any

Native window object exposed through SkiaLayer.component.

Functions

Link copied to clipboard

Prepares the host to present Skia raster surfaces.

Link copied to clipboard
open fun configureFrameBuffering(frameBuffering: FrameBuffering)

Applies framebuffer configuration before a context is created.

Link copied to clipboard
open fun configureGpuPriority(priority: GpuPriority)

Applies a platform-specific GPU preference before a context is created.

Link copied to clipboard
Link copied to clipboard

Transfers ownership of a toolkit-backed Vulkan window to this layer's renderer.

Link copied to clipboard
abstract fun deleteOpenGlContext(context: NativePointer)
Link copied to clipboard

Releases resources allocated by beginSoftwareRendering.

Link copied to clipboard

Returns true after the platform reports that the current OpenGL context was lost.

Link copied to clipboard
Link copied to clipboard

Name of the adapter backing the current OpenGL context, when available.

Link copied to clipboard
open fun presentSoftwareFrame(pixels: NativePointer, width: Int, height: Int, rowBytes: Int)

Presents premultiplied native N32 pixels to the window.

Link copied to clipboard
abstract fun requestRender()

Wakes the embedding toolkit's event loop so it can call SkiaLayer.render.

Link copied to clipboard
abstract fun setOpenGlSwapInterval(interval: Int): Boolean

Returns whether the requested presentation interval was accepted.

Link copied to clipboard
abstract fun swapOpenGlBuffers()