public interface LayerTree
| Modifier and Type | Method and 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.
|
EventListener |
onLayerPainted(EventHandler<LayerPainted> eventListener) |
EventListener |
onLayerTreeDidChange(EventHandler<LayerTreeDidChange> eventListener) |
List<List<Double>> |
profileSnapshot(String snapshotId) |
List<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.
|
List<Object> |
snapshotCommandLog(String snapshotId)
Replays the layer snapshot and returns canvas log.
|
List<String> compositingReasons(String layerId)
layerId - The id of the layer for which we want to get the reasons it was composited.void disable()
void enable()
String loadSnapshot(List<PictureTile> tiles)
tiles - An array of tiles composing the snapshot.String makeSnapshot(String layerId)
layerId - The id of the layer.List<List<Double>> profileSnapshot(String snapshotId)
snapshotId - The id of the layer snapshot.List<List<Double>> profileSnapshot(String snapshotId, Integer minRepeatCount, Double minDuration, Rect clipRect)
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.void releaseSnapshot(String snapshotId)
snapshotId - The id of the layer snapshot.String replaySnapshot(String snapshotId)
snapshotId - The id of the layer snapshot.String replaySnapshot(String snapshotId, Integer fromStep, Integer toStep, Double scale)
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).List<Object> snapshotCommandLog(String snapshotId)
snapshotId - The id of the layer snapshot.EventListener onLayerPainted(EventHandler<LayerPainted> eventListener)
EventListener onLayerTreeDidChange(EventHandler<LayerTreeDidChange> eventListener)
Copyright © 2020. All rights reserved.