return buf_info->need_to_commit;
}
-void
-twe_surface_commit_without_enqueue(twe_surface_h twe_surface,
- tbm_surface_h tbm_surface)
-{
- twe_wl_surf_source *surf_source = (twe_wl_surf_source *)twe_surface;
-
- if (!surf_source) {
- TPL_ERR("Invalid parameter. twe_surface(%p)", twe_surface);
- return;
- }
-
- if (!tbm_surface || !tbm_surface_internal_is_valid(tbm_surface)) {
- TPL_ERR("Invalid parameter. tbm_surface(%p)", tbm_surface);
- return;
- }
-
- g_mutex_lock(&surf_source->surf_mutex);
- if (!surf_source->is_destroying)
- _twe_thread_wl_surface_commit(surf_source, tbm_surface);
- else
- TPL_WARN("surf_source(%p) native window is already destroyed.",
- surf_source);
- g_mutex_unlock(&surf_source->surf_mutex);
-}
-
static gboolean
_twe_thread_fence_wait_source_dispatch(GSource *source, GSourceFunc cb, gpointer data)
{
twe_surface_check_commit_needed(twe_surface_h twe_surface,
tbm_surface_h tbm_surface);
-void
-twe_surface_commit_without_enqueue(twe_surface_h twe_surface,
- tbm_surface_h tbm_surface);
-
tpl_result_t
twe_surface_set_damage_region(tbm_surface_h tbm_surface,
int num_rects, const int *rects);