goto ERROR;
}
+ if (display->tbm->bo_list &&
+ display->tbm->bo_size != info->bo_size)
+ _destroy_tbm_bo_list(display->tbm);
+
if (display->tbm->bo_list == NULL) {
LOG_DEBUG("MMPixelFormatType[%d]", info->format);
_create_tbm_bo_list(display->tbm, info->bo_size, 10); /* FIXME: use ini file to get list length */
LOG_DEBUG("bo[%p] is created", tbm_bo->bo);
tbm->bo_list = g_list_append(tbm->bo_list, tbm_bo);
}
- LOG_DEBUG("tbm->bo_list[%p, length:%d] is created", tbm->bo_list, g_list_length(tbm->bo_list));
+ tbm->bo_size = bo_size;
+
+ LOG_INFO("tbm[bo_list[%p, length:%d], bo_size:%d] is created",
+ tbm->bo_list, g_list_length(tbm->bo_list), tbm->bo_size);
}
void *_get_unused_tbm_bo(webrtc_tbm_s *tbm, unsigned int timeout_sec)
g_free(tbm);
}
-//LCOV_EXCL_STOP
\ No newline at end of file
+//LCOV_EXCL_STOP