OSDN Git Service

minigbm: cros_gralloc: support GRALLOC_MODULE_API_VERSION_0_3
[android-x86/external-minigbm.git] / gbm_helpers.c
index 2b9ce23..529d7fe 100644 (file)
@@ -26,6 +26,10 @@ uint64_t gbm_convert_flags(uint32_t flags)
                usage |= BO_USE_TEXTURE;
        if (flags & GBM_BO_USE_LINEAR)
                usage |= BO_USE_LINEAR;
+       if (flags & GBM_BO_USE_CAMERA_WRITE)
+               usage |= BO_USE_CAMERA_WRITE;
+       if (flags & GBM_BO_USE_CAMERA_READ)
+               usage |= BO_USE_CAMERA_READ;
 
        return usage;
 }