[M85 Migration] Ensure ProduceTexture is executed before ConsumeTexture 84/245384/4
authorChandan Padhi <c.padhi@samsung.com>
Tue, 10 Dec 2019 05:42:48 +0000 (11:12 +0530)
committerBot Blink <blinkbot@samsung.com>
Mon, 12 Oct 2020 09:17:35 +0000 (09:17 +0000)
commit3cd85ae1241949a5227906fad79a5ac204adb185
tree9f3a4b9a7b781e8d023366ab4923074f2456c452
parent9c8b51bd060754e2d0151f4bedd3b554114f6339
[M85 Migration] Ensure ProduceTexture is executed before ConsumeTexture

Black patches are seen occasionally while navigating back and
forth between pages. This is a sync issue where ConsumeTexture
gets executed before ProduceTexture's execution is completed.

To fix this issue, we add glFlush and glError before renderer
submits a frame to the browser. This will ensure that execution
of ProduceTexture is completed before ConsumeTexture is called.

Reference:
https://review.tizen.org/gerrit/c/197968/

Change-Id: I6882269588d257da3c455c2aa575b43c26e1d958
Signed-off-by: Chandan Padhi <c.padhi@samsung.com>
Signed-off-by: uzair <uzair.jaleel@samsung.com>
cc/mojo_embedder/async_layer_tree_frame_sink.cc