#include <drm_fourcc.h>
+#include "tizen/tizen_utils.h"
+
int tbm_bufmgr_fd = -1;
static void tizen_free_local_buffers(struct dri2_egl_surface *dri2_surf);
int width, height;
int32_t release_fence;
+ TRACE_BEGIN("DEQUEUE_BUFFER");
dri2_surf->tbm_surface = tpl_surface_dequeue_buffer_with_sync(
dri2_surf->tpl_surface,
UINT64_MAX,
&release_fence);
+ TRACE_END();
if (!dri2_surf->tbm_surface)
return EGL_FALSE;
dri2_surf->back->age = 1;
+ TRACE_BEGIN("DRI2_SWAP_BUFERS");
/* The buffer to enqueue should be the buffer in which
* the gpu drawing job is completed or after flush.
* If this is not guaranteed, it can lead to incorrect output.
dri2_flush_drawable_for_swapbuffers(disp, draw);
dri2_dpy->flush->invalidate(dri2_surf->dri_drawable);
}
+ TRACE_END();
if (dri2_surf->tbm_surface)
tizen_window_enqueue_buffer_with_damage(disp, dri2_surf, rects, n_rects);