ds_tizen_memory_flusher_info_send_free_flush(
struct ds_tizen_memory_flusher_info *info);
+bool
+ds_tizen_memory_flusher_info_supported_free_flush(
+ struct ds_tizen_memory_flusher_info *info);
+
#ifdef __cplusplus
}
#endif
ds_tizen_memory_flusher_info_send_free_flush(
struct ds_tizen_memory_flusher_info *info)
{
+ if (ds_tizen_memory_flusher_info_supported_free_flush(info))
+ return;
+
tizen_surface_shm_flusher_send_free_flush(info->resource);
}
+WL_EXPORT bool
+ds_tizen_memory_flusher_info_supported_free_flush(
+ struct ds_tizen_memory_flusher_info *info)
+{
+ if (wl_resource_get_version(info->resource) < TIZEN_SURFACE_SHM_FLUSHER_FREE_FLUSH_SINCE_VERSION)
+ return false;
+
+ return true;
+}
+
static struct ds_tizen_memory_flusher_info *
tizen_memory_flusher_client_find_info(struct ds_tizen_memory_flusher_client *client,
struct ds_surface *surface)