Interface LayerTree


  • public interface LayerTree
    • Method Summary

      Modifier and Type Method Description
      java.util.List<java.lang.String> compositingReasons​(java.lang.String layerId)
      Provides the reasons why the given layer was composited.
      void disable()
      Disables compositing tree inspection.
      void enable()
      Enables compositing tree inspection.
      java.lang.String loadSnapshot​(java.util.List<PictureTile> tiles)
      Returns the snapshot identifier.
      java.lang.String makeSnapshot​(java.lang.String layerId)
      Returns the layer snapshot identifier.
      java.util.List<java.lang.Double> profileSnapshot​(java.lang.String snapshotId)  
      java.util.List<java.lang.Double> profileSnapshot​(java.lang.String snapshotId, java.lang.Integer minRepeatCount, java.lang.Double minDuration, Rect clipRect)  
      void releaseSnapshot​(java.lang.String snapshotId)
      Releases layer snapshot captured by the back-end.
      java.lang.String replaySnapshot​(java.lang.String snapshotId)
      Replays the layer snapshot and returns the resulting bitmap.
      java.lang.String replaySnapshot​(java.lang.String snapshotId, java.lang.Integer fromStep, java.lang.Integer toStep, java.lang.Double scale)
      Replays the layer snapshot and returns the resulting bitmap.
    • Method Detail

      • compositingReasons

        java.util.List<java.lang.String> compositingReasons​(java.lang.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

        java.lang.String loadSnapshot​(java.util.List<PictureTile> tiles)
        Returns the snapshot identifier.
        Parameters:
        tiles - An array of tiles composing the snapshot.
        Returns:
        The id of the snapshot.
      • makeSnapshot

        java.lang.String makeSnapshot​(java.lang.String layerId)
        Returns the layer snapshot identifier.
        Parameters:
        layerId - The id of the layer.
        Returns:
        The id of the layer snapshot.
      • profileSnapshot

        java.util.List<java.lang.Double> profileSnapshot​(java.lang.String snapshotId,
                                                         java.lang.Integer minRepeatCount,
                                                         java.lang.Double minDuration,
                                                         Rect clipRect)
      • releaseSnapshot

        void releaseSnapshot​(java.lang.String snapshotId)
        Releases layer snapshot captured by the back-end.
        Parameters:
        snapshotId - The id of the layer snapshot.
      • replaySnapshot

        java.lang.String replaySnapshot​(java.lang.String snapshotId,
                                        java.lang.Integer fromStep,
                                        java.lang.Integer toStep,
                                        java.lang.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.
      • profileSnapshot

        java.util.List<java.lang.Double> profileSnapshot​(java.lang.String snapshotId)
      • replaySnapshot

        java.lang.String replaySnapshot​(java.lang.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.