e_presentation_time: consider subsurface synchronized mode 92/229192/1
authorChangyeon Lee <cyeon.lee@samsung.com>
Mon, 30 Mar 2020 07:18:23 +0000 (16:18 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Mon, 30 Mar 2020 07:23:23 +0000 (16:23 +0900)
merged pending feedback to feedback container of subsurface cache data
when synchronized mode.

Change-Id: I21c7fb9a13f4246895b1c5fa6891baa7e8514acb

src/bin/e_comp_wl.c
src/bin/e_comp_wl_subsurface.c

index 17cc721a04fa13c10c957ff331572afcb43fb7ac..e075dbafc319181f64776b1cc2e6c81b3b2c8b6e 100644 (file)
@@ -2620,7 +2620,7 @@ _e_comp_wl_surface_state_commit(E_Client *ec, E_Comp_Wl_Surface_State *state)
 
    e_presentation_time_container_feedback_discard(&ec->comp_data->presentation_container);
    e_presentation_time_container_feedback_merge(&ec->comp_data->presentation_container,
-                                                &ec->comp_data->pending.presentation_container);
+                                                &state->presentation_container);
 
    buffer = e_pixmap_resource_get(ec->pixmap);
 
index 1cd53e856308a698f9df3dd404bd0f16588be5d9..0684737a7cfe614d96d7ff834bbd7308ec4b9f18 100644 (file)
@@ -390,6 +390,10 @@ _e_comp_wl_subsurface_commit_to_cache(E_Client *ec)
                               l);
      }
 
+   e_presentation_time_container_feedback_discard(&sdata->cached.presentation_container);
+   e_presentation_time_container_feedback_merge(&sdata->cached.presentation_container,
+                                                &cdata->pending.presentation_container);
+
    sdata->cached.has_data = EINA_TRUE;
 }