e_output: only primary output renders and commits at Hwc_Windows 05/210605/3
authorSooChan Lim <sc1.lim@samsung.com>
Tue, 23 Jul 2019 02:04:38 +0000 (11:04 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Wed, 24 Jul 2019 05:16:51 +0000 (05:16 +0000)
Change-Id: Ieba350b59a65da903b7052767e6deecf7889239d

src/bin/e_output.c

index d0f2ac4bb44e5e1ce901f65d1524794ac5aa1ff2..4de35c09c31112b6d57b07b4ea5bc2bb7ddb06cf 100644 (file)
@@ -2989,6 +2989,10 @@ e_output_render(E_Output *output)
      }
    else
      {
+        /* render the only primary output */
+        if (output != e_comp_screen_primary_output_get(output->e_comp_screen))
+          return EINA_TRUE;
+
         if (!e_hwc_windows_render(output->hwc))
           {
              EOERR("fail to e_hwc_windows_render.", output);
@@ -3038,20 +3042,12 @@ e_output_commit(E_Output *output)
      }
    else
      {
-        if (output == output_primary)
-          {
-             if (!e_hwc_windows_commit(output->hwc))
-               {
-                  return EINA_FALSE;
-               }
-          }
-        else
+        /* commit the only primary output */
+        if (output != output_primary) return EINA_TRUE;
+
+        if (!e_hwc_windows_commit(output->hwc))
           {
-             if (!_e_output_external_commit(output))
-               {
-                  EOERR("fail _e_output_external_commit", output);
-                  return EINA_FALSE;
-               }
+            return EINA_FALSE;
           }
      }