chrome-devtools-kotlin / org.hildan.chrome.devtools.domains.layertree / LayerTreeDomain

LayerTreeDomain

class LayerTreeDomain

Official doc

Functions

compositingReasons

Provides the reasons why the given layer was composited.

suspend fun compositingReasons(input: CompositingReasonsRequest): CompositingReasonsResponse

disable

Disables compositing tree inspection.

suspend fun disable(): Unit

enable

Enables compositing tree inspection.

suspend fun enable(): Unit

events

Subscribes to all events related to this domain.

fun events(): Flow<LayerTreeEvent>

layerPainted

Official doc

fun layerPainted(): Flow<LayerPaintedEvent>

layerTreeDidChange

Official doc

fun layerTreeDidChange(): Flow<LayerTreeDidChangeEvent>

loadSnapshot

Returns the snapshot identifier.

suspend fun loadSnapshot(input: LoadSnapshotRequest): LoadSnapshotResponse

makeSnapshot

Returns the layer snapshot identifier.

suspend fun makeSnapshot(input: MakeSnapshotRequest): MakeSnapshotResponse

profileSnapshot

Official doc

suspend fun profileSnapshot(input: ProfileSnapshotRequest): ProfileSnapshotResponse

releaseSnapshot

Releases layer snapshot captured by the back-end.

suspend fun releaseSnapshot(input: ReleaseSnapshotRequest): Unit

replaySnapshot

Replays the layer snapshot and returns the resulting bitmap.

suspend fun replaySnapshot(input: ReplaySnapshotRequest): ReplaySnapshotResponse

snapshotCommandLog

Replays the layer snapshot and returns canvas log.

suspend fun snapshotCommandLog(input: SnapshotCommandLogRequest): SnapshotCommandLogResponse