Class SurfaceInfo


  • public final class SurfaceInfo
    extends Object
    Immutable value class for a Surface and supporting information.
    • Field Detail

      • width

        public final int width
        The width of frames rendered to the surface, in pixels.
      • height

        public final int height
        The height of frames rendered to the surface, in pixels.
      • orientationDegrees

        public final int orientationDegrees
        A counter-clockwise rotation to apply to frames before rendering them to the surface.

        Must be 0, 90, 180, or 270 degrees. Default is 0.

    • Constructor Detail

      • SurfaceInfo

        public SurfaceInfo​(Surface surface,
                           int width,
                           int height)
        Creates a new instance.
      • SurfaceInfo

        public SurfaceInfo​(Surface surface,
                           int width,
                           int height,
                           int orientationDegrees)
        Creates a new instance.
    • Method Detail

      • equals

        public boolean equals​(@Nullable
                              Object o)
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object