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