Added ttrace points
authorJoonbum Ko <joonbum.ko@samsung.com>
Tue, 21 Jul 2020 03:37:49 +0000 (12:37 +0900)
committerXuelian Bai <xuelian.bai@samsung.com>
Thu, 18 Jan 2024 01:31:55 +0000 (09:31 +0800)
Change-Id: Idc9d301b560373d05bc427f171f5f48777deb78c
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
src/egl/drivers/dri2/platform_tizen.c

index d15050e..b0995b4 100755 (executable)
@@ -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);