Interface LayerTree


  • public interface LayerTree
    • 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.
      • 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.
      • replaySnapshot

        String replaySnapshot​(String snapshotId)
        Replays the layer snapshot and returns the resulting bitmap.
        Parameters:
        snapshotId - The id of the layer snapshot.
        Returns:
        A data: URL for resulting image.