Adds ANativeWindowBuffer support for layered images.
This is required for support of buffers that back texture arrays. Bug: 31686534 Test: manual Change-Id: I78ce132592f3803482ca858fd4be103c286f21e9
This commit is contained in:
parent
a3681954b4
commit
ce54b4d14e
1 changed files with 9 additions and 1 deletions
|
@ -121,8 +121,9 @@ typedef struct ANativeWindowBuffer
|
|||
int stride;
|
||||
int format;
|
||||
int usage;
|
||||
uintptr_t layerCount;
|
||||
|
||||
void* reserved[2];
|
||||
void* reserved[1];
|
||||
|
||||
buffer_handle_t handle;
|
||||
|
||||
|
@ -297,6 +298,13 @@ enum {
|
|||
* Returns the duration of the last queueBuffer call in microseconds
|
||||
*/
|
||||
NATIVE_WINDOW_LAST_QUEUE_DURATION = 15,
|
||||
|
||||
/*
|
||||
* Returns the number of image layers that the ANativeWindow buffer
|
||||
* contains. By default this is 1, unless a buffer is explicitly allocated
|
||||
* to contain multiple layers.
|
||||
*/
|
||||
NATIVE_WINDOW_LAYER_COUNT = 16,
|
||||
};
|
||||
|
||||
/* Valid operations for the (*perform)() hook.
|
||||
|
|
Loading…
Reference in a new issue