pl.wendigo.chrome.domain.layertree / LayerTreeDomain

LayerTreeDomain

class LayerTreeDomain (source)

LayerTreeDomain represents remote debugger protocol domain.

Functions

compositingReasons

fun compositingReasons(input: CompositingReasonsRequest): Single<CompositingReasonsResponse>

Provides the reasons why the given layer was composited.

disable

fun disable(): Single<ResponseFrame>

Disables compositing tree inspection.

enable

fun enable(): Single<ResponseFrame>

Enables compositing tree inspection.

events

fun events(): Flowable<ProtocolEvent>

Returns flowable capturing all LayerTree domains events.

layerPainted

fun layerPainted(): Flowable<LayerPaintedEvent>

Returns observable capturing all LayerTree.layerPainted events.

layerPaintedTimed

fun layerPaintedTimed(): Flowable<Timed<LayerPaintedEvent>>

Returns observable capturing all LayerTree.layerPainted events.

layerTreeDidChange

fun layerTreeDidChange(): Flowable<LayerTreeDidChangeEvent>

Returns observable capturing all LayerTree.layerTreeDidChange events.

layerTreeDidChangeTimed

fun layerTreeDidChangeTimed(): Flowable<Timed<LayerTreeDidChangeEvent>>

Returns observable capturing all LayerTree.layerTreeDidChange events.

loadSnapshot

fun loadSnapshot(input: LoadSnapshotRequest): Single<LoadSnapshotResponse>

Returns the snapshot identifier.

makeSnapshot

fun makeSnapshot(input: MakeSnapshotRequest): Single<MakeSnapshotResponse>

Returns the layer snapshot identifier.

profileSnapshot

fun profileSnapshot(input: ProfileSnapshotRequest): Single<ProfileSnapshotResponse>

releaseSnapshot

fun releaseSnapshot(input: ReleaseSnapshotRequest): Single<ResponseFrame>

Releases layer snapshot captured by the back-end.

replaySnapshot

fun replaySnapshot(input: ReplaySnapshotRequest): Single<ReplaySnapshotResponse>

Replays the layer snapshot and returns the resulting bitmap.

snapshotCommandLog

fun snapshotCommandLog(input: SnapshotCommandLogRequest): Single<SnapshotCommandLogResponse>

Replays the layer snapshot and returns canvas log.