NativeCanvasCapture

One presentation's externally leased texture contents or custom-renderer invocation.

The device owns this lease, calls it only on its render thread, and releases it after a capture fence even when rendering throws. Implementations must keep source contents and native storage stable until close, not merely until render returns.

Functions

Link copied to clipboard
abstract override fun close()

Releases the external capture lease after GPU capture has completed, independently of later GUI consumption.

Link copied to clipboard
abstract fun render(target: NativeCanvasTarget, logicalSize: IntSize, frameTime: FrameTime): DrawImage?

Captures into a borrowed Strata-owned target without reading GPU pixels back to the CPU.