[Offscreen] Fix for black screen on static pages 72/288672/4
authoruzair <uzair.jaleel@samsung.com>
Tue, 21 Feb 2023 09:11:24 +0000 (14:41 +0530)
committerBot Blink <blinkbot@samsung.com>
Fri, 3 Mar 2023 19:27:17 +0000 (19:27 +0000)
Below change makes sure ensure all drawing to the context
has been flushed and submitted to graphics driver before
shown on screen.

Change-Id: Ia4b751b211bd66c9be04328b947e355b0c274c6b
Signed-off-by: uzair <uzair.jaleel@samsung.com>
components/viz/service/display_embedder/skia_output_device_offscreen.cc

index 6aa7a45..29434dc 100644 (file)
@@ -74,6 +74,9 @@ void SkiaOutputDeviceOffscreen::SwapBuffers(BufferPresentedCallback feedback,
   StartSwapBuffers(std::move(feedback));
   FinishSwapBuffers(gfx::SwapCompletionResult(gfx::SwapResult::SWAP_ACK),
                     gfx::Size(size_.width(), size_.height()), std::move(frame));
+#if BUILDFLAG(IS_TIZEN)
+  context_state_->gr_context()->flushAndSubmit(true);
+#endif
 }
 
 void SkiaOutputDeviceOffscreen::PostSubBuffer(const gfx::Rect& rect,