1package android.dvr;
2
3import android.dvr.ParcelableComposerFrame;
4import android.dvr.ParcelableUniqueFd;
5
6/**
7 * A system app will implement and register this callback with VRComposer
8 * to receive the layers SurfaceFlinger presented when in VR mode.
9 *
10 * @hide */
11interface IVrComposerCallback {
12  /**
13   * Called by the VR HWC service when a new frame is ready to be presented.
14   *
15   * @param frame The new frame VR HWC wants to present.
16   * @return A fence FD used to signal when the previous frame is no longer
17   * used by the client. This may be an invalid fence (-1) if the client is not
18   * using the previous frame, in which case the previous frame may be re-used
19   * at any point in time.
20   */
21  ParcelableUniqueFd onNewFrame(in ParcelableComposerFrame frame);
22}
23