Struct PresentResult
sealed struct PresentResult
PresentResult shows the result of presentBuffer call. it show the state of
buffer rendering, based on the state result, clients can do more operations
to ensure the buffer is displayed on screen correctly.
[IMediaSurface#presentBuffer]
Fields
Constants
REJECTED_OBSCURE
The update request is rejected because the Window is hidden or Surface is obscured by other top surfaces. All presentBufferWithDamage calls will be rejected until previous presentBufferWithDamage have either been discarded or a present Event has been generated and the Window is not hidden. Clients should wait for Surface Events to determine when to present the Surface again.PresentResult={0}
REJECTED_OFFSCREEN
The update request is rejected as the surface is meant to be used for OffscreenRendering only.PresentResult={1}
REJECTED_FORMAT
The update request is rejected as the surface cannot support the Format.PresentResult={2}
REJECTED_SWAP_BUFFERS
Swapping Front and Back buffer failed.PresentResult={3}
REJECTED_INVALID_FRONT_BUFFER
The update request is rejected as current Front buffer is invalidPresentResult={4}
SUBMITTED
The update request has been submitted to display server.PresentResult={5}
QUEUED
The update request has been queued to be submitted to display server.PresentResult={6}

