Class LayerTree


  • @Beta
    public class LayerTree
    extends java.lang.Object
    • Constructor Detail

      • LayerTree

        public LayerTree()
    • Method Detail

      • compositingReasons

        public static Command<java.util.List<java.lang.String>> compositingReasons​(LayerId layerId)
        Provides the reasons why the given layer was composited.
      • disable

        public static Command<java.lang.Void> disable()
        Disables compositing tree inspection.
      • enable

        public static Command<java.lang.Void> enable()
        Enables compositing tree inspection.
      • makeSnapshot

        public static Command<SnapshotId> makeSnapshot​(LayerId layerId)
        Returns the layer snapshot identifier.
      • profileSnapshot

        public static Command<java.util.List<PaintProfile>> profileSnapshot​(SnapshotId snapshotId,
                                                                            java.util.Optional<java.lang.Integer> minRepeatCount,
                                                                            java.util.Optional<java.lang.Number> minDuration,
                                                                            java.util.Optional<Rect> clipRect)
      • releaseSnapshot

        public static Command<java.lang.Void> releaseSnapshot​(SnapshotId snapshotId)
        Releases layer snapshot captured by the back-end.
      • replaySnapshot

        public static Command<java.lang.String> replaySnapshot​(SnapshotId snapshotId,
                                                               java.util.Optional<java.lang.Integer> fromStep,
                                                               java.util.Optional<java.lang.Integer> toStep,
                                                               java.util.Optional<java.lang.Number> scale)
        Replays the layer snapshot and returns the resulting bitmap.
      • snapshotCommandLog

        public static Command<java.util.List<java.util.Map<java.lang.String,​java.lang.Object>>> snapshotCommandLog​(SnapshotId snapshotId)
        Replays the layer snapshot and returns canvas log.
      • layerTreeDidChange

        public static Event<java.util.List<Layer>> layerTreeDidChange()