e_info_server: use sync dump in topvwins and selected_buffer 76/203476/2
authorChangyeon Lee <cyeon.lee@samsung.com>
Mon, 15 Apr 2019 06:08:22 +0000 (15:08 +0900)
committerchangyeon lee <cyeon.lee@samsung.com>
Mon, 15 Apr 2019 09:41:57 +0000 (09:41 +0000)
Change-Id: I03d114a185301f529d3b8cc537a566e7f0deef25

src/bin/e_info_server.c

index 045f93379ed692b7fb2db959c900b480e76afae3..fe449517101da0c43fccccb26e1577a87e96b1a9 100644 (file)
@@ -2483,8 +2483,8 @@ static void _e_info_server_cb_wins_dump_topvwins(const char *dir)
         if (ec->comp_data)
           rotation = ec->comp_data->scaler.buffer_viewport.buffer.transform * 90;
 
-        snprintf(fname, sizeof(fname), "0x%08zx_%d", win, rotation);
-        e_client_image_save(ec, dir, fname, NULL, NULL, EINA_TRUE);
+        snprintf(fname, sizeof(fname), "%s/0x%08x_%d.png", dir, win, rotation);
+        e_info_server_dump_client(ec, fname);
      }
 }
 
@@ -3924,8 +3924,8 @@ _e_info_server_cb_selected_buffer_dump(const Eldbus_Service_Interface *iface EIN
 
         if (win_id != win) continue;
 
-        snprintf(fname, sizeof(fname), "0x%08zx", win);
-        e_client_image_save(ec, path, fname, NULL, NULL, EINA_TRUE);
+        snprintf(fname, sizeof(fname), "%s/0x%08x.png", path, win);
+        e_info_server_dump_client(ec, fname);
         break;
      }