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:
Craig Donner 2016-10-19 18:07:17 -07:00
parent a3681954b4
commit ce54b4d14e

View file

@ -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.