X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=gbm.h;h=a58aadbb1d91586e6775d353aa274ceae66a890f;hb=bc8c5930f7db53ef0faa6c264c5da805fab2f17a;hp=839e2a51c63aac79ddcd01ca7010e3ad7a82ea18;hpb=3345977b5e9ef13f97e2e858241297fc4bfc7401;p=android-x86%2Fexternal-minigbm.git diff --git a/gbm.h b/gbm.h index 839e2a5..a58aadb 100644 --- a/gbm.h +++ b/gbm.h @@ -35,6 +35,7 @@ extern "C" { #define __GBM__ 1 +#include #include /** @@ -238,6 +239,22 @@ enum gbm_bo_flags { * buffer. */ GBM_BO_USE_LINEAR = (1 << 4), + /** + * The buffer will be used as a texture that will be sampled from. + */ + GBM_BO_USE_TEXTURING = (1 << 5), + /** + * The buffer will be written to by a camera subsystem. + */ + GBM_BO_USE_CAMERA_WRITE = (1 << 6), + /** + * The buffer will be read from by a camera subsystem. + */ + GBM_BO_USE_CAMERA_READ = (1 << 7), + /** + * Buffer inaccessible to unprivileged users. + */ + GBM_BO_USE_PROTECTED = (1 << 8), }; int @@ -261,6 +278,12 @@ gbm_bo_create(struct gbm_device *gbm, uint32_t width, uint32_t height, uint32_t format, uint32_t flags); +struct gbm_bo * +gbm_bo_create_with_modifiers(struct gbm_device *gbm, + uint32_t width, uint32_t height, + uint32_t format, + const uint64_t *modifiers, uint32_t count); + #define GBM_BO_IMPORT_WL_BUFFER 0x5501 #define GBM_BO_IMPORT_EGL_IMAGE 0x5502 #define GBM_BO_IMPORT_FD 0x5503