Revert "Ensure all gl calls are submitted to GPU" 28/291628/2
authorUzair Jaleel <uzair.jaleel@samsung.com>
Wed, 19 Apr 2023 10:58:52 +0000 (10:58 +0000)
committerBot Blink <blinkbot@samsung.com>
Thu, 20 Apr 2023 01:00:06 +0000 (01:00 +0000)
This reverts commit 530b19ef2644316dc95baaae52e3102a4d66a0af.

Reason for revert: This change is not needed anymore as https://review.tizen.org/gerrit/c/platform/framework/web/chromium-efl/+/291434 is merged

Change-Id: Ifae43e8bbc629cc197b20187d41686177065d3db

cc/mojo_embedder/async_layer_tree_frame_sink.cc

index 399f501..029471a 100644 (file)
 #include "components/viz/common/hit_test/hit_test_region_list.h"
 #include "components/viz/common/quads/compositor_frame.h"
 
-#if BUILDFLAG(IS_TIZEN)
-#include "gpu/command_buffer/client/gles2_interface.h"
-#endif
-
 namespace cc {
 namespace mojo_embedder {
 
@@ -218,12 +214,6 @@ void AsyncLayerTreeFrameSink::SubmitCompositorFrame(
   power_mode_voter_.OnFrameProduced(frame.render_pass_list.back()->damage_rect,
                                     frame.device_scale_factor());
 
-#if BUILDFLAG(IS_TIZEN)
-  if (auto* compositor_context_provider = context_provider()) {
-    compositor_context_provider->ContextGL()->Flush();
-    compositor_context_provider->ContextGL()->GetError();
-  }
-#endif
   compositor_frame_sink_ptr_->SubmitCompositorFrame(
       local_surface_id_, std::move(frame), std::move(hit_test_region_list), 0);
 }