NativeCanvasAllocationFailure

class NativeCanvasAllocationFailure(val target: NativeCanvasTarget, val failure: Throwable, val releaseRequested: Boolean = false) : RuntimeException(source)

Transfers a partially allocated target to its device when allocation rollback cannot finish.

A driver throws this carrier only while holding a pre-reserved target-set permit. The device registers an initialization fence, quarantines the target and permit until terminal GPU completion and an acknowledged physical release, and rethrows NativeCanvasAllocationFailure.failure as the primary allocation failure. A queued asynchronous release alone never permits the driver to discard this ownership transfer. Construction and all target access belong to the owning render thread; the carrier never enters a frame or snapshot.

Parameters

target

exclusively transferred partial target with retryable, idempotent cleanup.

failure

original allocation failure, with unsuccessful rollback failures already suppressed.

releaseRequested

whether NativeCanvasAllocationFailure.target already accepted a successful close request; the device then only awaits physical acknowledgement and never repeats close.

Constructors

Link copied to clipboard
constructor(target: NativeCanvasTarget, failure: Throwable, releaseRequested: Boolean = false)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
Link copied to clipboard
open val message: String?
Link copied to clipboard
Link copied to clipboard