X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=cros_gralloc%2Fcros_gralloc_helpers.h;h=ec8b025851854620134ebcec9dd833b8bc8caad9;hb=af6e5afba0ddcd067a36781dbb652ed4040a0cbb;hp=a55eebcada439ef7876d4359fb1585ec3925e043;hpb=5e2c4ec75165b5b167d9a4192ade2b6f62ceb3ad;p=android-x86%2Fexternal-minigbm.git diff --git a/cros_gralloc/cros_gralloc_helpers.h b/cros_gralloc/cros_gralloc_helpers.h index a55eebc..ec8b025 100644 --- a/cros_gralloc/cros_gralloc_helpers.h +++ b/cros_gralloc/cros_gralloc_helpers.h @@ -20,8 +20,10 @@ constexpr uint32_t handle_data_size = uint32_t cros_gralloc_convert_format(int32_t format); -cros_gralloc_handle_t cros_gralloc_convert_handle(buffer_handle_t handle); +extern "C" cros_gralloc_handle_t cros_gralloc_convert_handle(buffer_handle_t handle); -int32_t cros_gralloc_sync_wait(int32_t acquire_fence); +int32_t cros_gralloc_sync_wait(int32_t fence, bool close_fence); + +std::string get_drm_format_string(uint32_t drm_format); #endif