From 5a6435d59e6696527a7be16417eaa053edca30c7 Mon Sep 17 00:00:00 2001 From: Joonbum Ko Date: Tue, 21 Jul 2020 12:37:49 +0900 Subject: [PATCH] Added ttrace points Change-Id: Idc9d301b560373d05bc427f171f5f48777deb78c Signed-off-by: Joonbum Ko --- src/egl/drivers/dri2/platform_tizen.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/egl/drivers/dri2/platform_tizen.c b/src/egl/drivers/dri2/platform_tizen.c index d2445a4..a4b591f 100755 --- a/src/egl/drivers/dri2/platform_tizen.c +++ b/src/egl/drivers/dri2/platform_tizen.c @@ -52,6 +52,8 @@ #include +#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); -- 2.7.4