#include "components/viz/common/hit_test/hit_test_region_list.h"
#include "components/viz/common/quads/compositor_frame.h"
+#if defined(USE_EFL)
+#include "gpu/command_buffer/client/gles2_interface.h"
+#endif
+
namespace {
base::HistogramBase* GetHistogramNamed(const char* histogram_name_format,
TRACE_EVENT_FLAG_FLOW_OUT, "step",
"SubmitHitTestData");
+#if defined(USE_EFL)
+ 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);
}