HardwareBufferRenderer.RenderResult
public
static
final
class
HardwareBufferRenderer.RenderResult
extends Object
java.lang.Object | |
↳ | android.graphics.HardwareBufferRenderer.RenderResult |
Class that contains data regarding the result of the render request.
Consumers are to wait on the provided SyncFence
before consuming the HardwareBuffer
provided to HardwareBufferRenderer
as well as verify that the status returned by
RenderResult#getStatus()
returns RenderResult#SUCCESS
.
Summary
Constants | |
---|---|
int |
ERROR_UNKNOWN
Render request failed with an unknown error |
int |
SUCCESS
Render request was completed successfully |
Public methods | |
---|---|
SyncFence
|
getFence()
|
int
|
getStatus()
|
Inherited methods | |
---|---|
Constants
ERROR_UNKNOWN
public static final int ERROR_UNKNOWN
Render request failed with an unknown error
Constant Value: 1 (0x00000001)
SUCCESS
public static final int SUCCESS
Render request was completed successfully
Constant Value: 0 (0x00000000)
Public methods
getFence
public SyncFence getFence ()
Returns | |
---|---|
SyncFence |
This value cannot be null . |
getStatus
public int getStatus ()
Returns | |
---|---|
int |
Value is SUCCESS , or ERROR_UNKNOWN |