OSDN Git Service

minigbm: cros_gralloc: simplify getting the drm format string
[android-x86/external-minigbm.git] / cros_gralloc / cros_gralloc_helpers.h
index f198dd9..a43833d 100644 (file)
@@ -22,12 +22,8 @@ uint32_t cros_gralloc_convert_format(int32_t format);
 
 cros_gralloc_handle_t cros_gralloc_convert_handle(buffer_handle_t handle);
 
-__attribute__((format(printf, 4, 5))) void cros_gralloc_log(const char *prefix, const char *file,
-                                                           int line, const char *format, ...);
+int32_t cros_gralloc_sync_wait(int32_t fence, bool close_fence);
 
-#define cros_gralloc_error(...)                                                                    \
-       do {                                                                                       \
-               cros_gralloc_log("CROS_GRALLOC_ERROR", __FILE__, __LINE__, __VA_ARGS__);           \
-       } while (0)
+std::string get_drm_format_string(uint32_t drm_format);
 
 #endif