diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/egl/drivers/dri2/platform_tizen.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/egl/drivers/dri2/platform_tizen.c b/src/egl/drivers/dri2/platform_tizen.c index d15050e03ce..b0995b4ca54 100755 --- a/src/egl/drivers/dri2/platform_tizen.c +++ b/src/egl/drivers/dri2/platform_tizen.c @@ -52,6 +52,8 @@ #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); @@ -227,10 +229,12 @@ tizen_window_dequeue_buffer(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; @@ -778,6 +782,7 @@ tizen_swap_buffers_with_damage(_EGLDisplay *disp, 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. @@ -788,6 +793,7 @@ tizen_swap_buffers_with_damage(_EGLDisplay *disp, 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); |