Chrome Remote Interface v0.0.1 ChromeRemoteInterface.RPC.LayerTree View Source

Link to this section Summary

Functions

Provides the reasons why the given layer was composited

Disables compositing tree inspection

Enables compositing tree inspection

Returns the snapshot identifier

Returns the layer snapshot identifier

Releases layer snapshot captured by the back-end

Replays the layer snapshot and returns the resulting bitmap

Replays the layer snapshot and returns canvas log

Link to this section Functions

Link to this function compositingReasons(page_pid, parameters \\ %{}) View Source

Provides the reasons why the given layer was composited.

Parameters: layerId - - The id of the layer for which we want to get the reasons it was composited.

Link to this function disable(page_pid, parameters \\ %{}) View Source

Disables compositing tree inspection.

Parameters:

Link to this function enable(page_pid, parameters \\ %{}) View Source

Enables compositing tree inspection.

Parameters:

Link to this function loadSnapshot(page_pid, parameters \\ %{}) View Source

Returns the snapshot identifier.

Parameters: tiles - - An array of tiles composing the snapshot.

Link to this function makeSnapshot(page_pid, parameters \\ %{}) View Source

Returns the layer snapshot identifier.

Parameters: layerId - - The id of the layer.

Link to this function profileSnapshot(page_pid, parameters \\ %{}) View Source

Parameters: snapshotId - - The id of the layer snapshot.minRepeatCount - - The maximum number of times to replay the snapshot (1, if not specified).minDuration - - The minimum duration (in seconds) to replay the snapshot.clipRect - - The clip rectangle to apply when replaying the snapshot.

Link to this function releaseSnapshot(page_pid, parameters \\ %{}) View Source

Releases layer snapshot captured by the back-end.

Parameters: snapshotId - - The id of the layer snapshot.

Link to this function replaySnapshot(page_pid, parameters \\ %{}) View Source

Replays the layer snapshot and returns the resulting bitmap.

Parameters: snapshotId - - The id of the layer snapshot.fromStep - - The first step to replay from (replay from the very start if not specified).toStep - - The last step to replay to (replay till the end if not specified).scale - - The scale to apply while replaying (defaults to 1).

Link to this function snapshotCommandLog(page_pid, parameters \\ %{}) View Source

Replays the layer snapshot and returns canvas log.

Parameters: snapshotId - - The id of the layer snapshot.