util: check string of tbm_surface_queue before tbm_surface 22/207622/1
authorChangyeon Lee <cyeon.lee@samsung.com>
Mon, 10 Jun 2019 04:54:34 +0000 (13:54 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Mon, 10 Jun 2019 04:57:36 +0000 (13:57 +0900)
tbm_surface and tbm_surface_queue have same string(tbm_surface)

Change-Id: I75fd25c9888b9e95583cf20542a30eb74fa04fe8

src/wayland-tbm-util.c

index f8bf8ee..981c595 100644 (file)
@@ -158,10 +158,10 @@ _waylend_tbm_util_resource_parse(char * str)
                return WL_TBM_MONITOR_RES_BO;
        if (!strncmp(str, "tbm_surface_internal", 19))
                return WL_TBM_MONITOR_RES_SURFACE_INTERNAL;
-       if (!strncmp(str, "tbm_surface", 11))
-               return WL_TBM_MONITOR_RES_SURFACE;
        if (!strncmp(str, "tbm_surface_queue", 17))
                return WL_TBM_MONITOR_RES_SURFACE_QUEUE;
+       if (!strncmp(str, "tbm_surface", 11))
+               return WL_TBM_MONITOR_RES_SURFACE;
        if (!strncmp(str, "wl_tbm", 6))
                return WL_TBM_MONITOR_RES_WL_TBM;
        if (!strncmp(str, "all", 3))