buf_info->backend_ref_count++;
tbm_surface_internal_ref(buffer);
+ if (tdm_debug_module & TDM_DEBUG_BUFFER)
+ TDM_INFO("buffer(%p) backend_ref_count(%d)", buffer, buf_info->backend_ref_count);
+
return buffer;
}
TDM_RETURN_IF_FAIL(buf_info != NULL);
buf_info->backend_ref_count--;
+
+ if (tdm_debug_module & TDM_DEBUG_BUFFER)
+ TDM_INFO("buffer(%p) backend_ref_count(%d)", buffer, buf_info->backend_ref_count);
+
if (buf_info->backend_ref_count > 0) {
tbm_surface_internal_unref(buffer);
return;
}
-// if (!tdm_thread_in_display_thread(syscall(SYS_gettid)))
-// TDM_NEVER_GET_HERE();
+ if (tdm_debug_module & TDM_DEBUG_BUFFER)
+ TDM_INFO("buffer(%p) released", buffer);
tbm_surface_internal_ref(buffer);
LIST_FOR_EACH_ENTRY_SAFE(func_info, next, &buf_info->release_funcs, link)