e_info_server: fix issue which fps isn't shown when hwc policy is planes 82/196882/2
authorChangyeon Lee <cyeon.lee@samsung.com>
Mon, 7 Jan 2019 08:16:39 +0000 (17:16 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Tue, 8 Jan 2019 00:34:52 +0000 (00:34 +0000)
Change-Id: I040ee39f1582c9434ea3114da1351fdf3e110bdd

src/bin/e_info_server.c

index e26e0683a6577a596c2f8da589d292ae643f31d8..4b6d3cf397015167029e6aa38598e16b18a32935 100644 (file)
@@ -4324,40 +4324,46 @@ _msg_layer_fps_append(Eldbus_Message_Iter *iter)
 
         if (output->hwc)
           {
-             if (!e_hwc_windows_fps_get(output->hwc, &fps)) continue;
-
-             Eldbus_Message_Iter* struct_of_layer_fps;
-
-             eldbus_message_iter_arguments_append(array_of_layer_fps, "("VALUE_TYPE_FOR_LAYER_FPS")", &struct_of_layer_fps);
-
-             eldbus_message_iter_arguments_append
-                (struct_of_layer_fps, VALUE_TYPE_FOR_LAYER_FPS,
-                  output_name,
-                  -999,
-                  fps);
-
-             eldbus_message_iter_container_close(array_of_layer_fps, struct_of_layer_fps);
-          }
-        else
-          {
-             EINA_LIST_FOREACH(output->planes, plane_l, plane)
+             if (e_hwc_policy_get(output->hwc) == E_HWC_POLICY_WINDOWS)
                {
-                  if (!plane) continue;
-                  if (!e_plane_fps_get(plane, &fps)) continue;
+                  if (!e_hwc_windows_fps_get(output->hwc, &fps)) continue;
 
                   Eldbus_Message_Iter* struct_of_layer_fps;
 
                   eldbus_message_iter_arguments_append(array_of_layer_fps, "("VALUE_TYPE_FOR_LAYER_FPS")", &struct_of_layer_fps);
 
                   eldbus_message_iter_arguments_append
-                     (struct_of_layer_fps, VALUE_TYPE_FOR_LAYER_FPS,
-                       output_name,
-                       plane->zpos,
-                       plane->fps);
+                      (struct_of_layer_fps, VALUE_TYPE_FOR_LAYER_FPS,
+                        output_name,
+                        -999,
+                        fps);
 
                   eldbus_message_iter_container_close(array_of_layer_fps, struct_of_layer_fps);
                }
+             else
+               {
+                  EINA_LIST_FOREACH(output->planes, plane_l, plane)
+                    {
+                        if (!plane) continue;
+                        if (!e_plane_fps_get(plane, &fps)) continue;
+
+                        Eldbus_Message_Iter* struct_of_layer_fps;
+
+                        eldbus_message_iter_arguments_append(array_of_layer_fps, "("VALUE_TYPE_FOR_LAYER_FPS")", &struct_of_layer_fps);
+
+                        eldbus_message_iter_arguments_append
+                          (struct_of_layer_fps, VALUE_TYPE_FOR_LAYER_FPS,
+                            output_name,
+                            plane->zpos,
+                            plane->fps);
+
+                        eldbus_message_iter_container_close(array_of_layer_fps, struct_of_layer_fps);
+                    }
+               }
           }
+        else
+          continue;
+
         memset(output_name, 0x0, sizeof(char)*30);
      }