Package limn.video

Interface VideoSurfaces.Provider

Enclosing class:
VideoSurfaces

public static interface VideoSurfaces.Provider
Backend-supplied factory, installed at startup.
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates a surface belonging to the window currently rendering.
  • Method Details

    • createSurface

      VideoSurface createSurface()
      Creates a surface belonging to the window currently rendering. Called on the UI thread, inside a frame. The facade checks the thread, and an implementation whose surfaces belong to a rendering context must refuse when there is no frame, because a surface created against the wrong context draws from another window's textures.
      Returns:
      the new surface, sized 0×0 until its first VideoSurface.upload(limn.video.VideoFrame); never null
      Throws:
      IllegalStateException - if no frame is being rendered