Package io.webfolder.cdp.command
Interface LayerTree
public interface LayerTree
-
Method Summary
Modifier and TypeMethodDescriptioncompositingReasons
(String layerId) Provides the reasons why the given layer was composited.void
disable()
Disables compositing tree inspection.void
enable()
Enables compositing tree inspection.loadSnapshot
(List<PictureTile> tiles) Returns the snapshot identifier.makeSnapshot
(String layerId) Returns the layer snapshot identifier.profileSnapshot
(String snapshotId) profileSnapshot
(String snapshotId, Integer minRepeatCount, Double minDuration, Rect clipRect) void
releaseSnapshot
(String snapshotId) Releases layer snapshot captured by the back-end.replaySnapshot
(String snapshotId) Replays the layer snapshot and returns the resulting bitmap.replaySnapshot
(String snapshotId, Integer fromStep, Integer toStep, Double scale) Replays the layer snapshot and returns the resulting bitmap.
-
Method Details
-
compositingReasons
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.- Returns:
- CompositingReasonsResult
-
disable
void disable()Disables compositing tree inspection. -
enable
void enable()Enables compositing tree inspection. -
loadSnapshot
Returns the snapshot identifier.- Parameters:
tiles
- An array of tiles composing the snapshot.- Returns:
- The id of the snapshot.
-
makeSnapshot
Returns the layer snapshot identifier.- Parameters:
layerId
- The id of the layer.- Returns:
- The id of the layer snapshot.
-
profileSnapshot
-
profileSnapshot
-
releaseSnapshot
Releases layer snapshot captured by the back-end.- Parameters:
snapshotId
- The id of the layer snapshot.
-
replaySnapshot
Replays the layer snapshot and returns the resulting bitmap.- Parameters:
snapshotId
- The id of the layer snapshot.- Returns:
- A data: URL for resulting image.
-
replaySnapshot
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).- Returns:
- A data: URL for resulting image.
-