Update flutter skia flush calls to new flush and submit api (flutter/engine#18421)
* Update flutter to use new skia flushing/submit api This has no functional change, just moving to the new api calls. * Update vulkan_swapchain.cc * Update embedder_external_view_embedder.cc
This commit is contained in:
@@ -211,7 +211,7 @@ bool EmbedderExternalViewEmbedder::SubmitFrame(GrContext* context,
|
||||
//
|
||||
// @warning: Embedder may trample on our OpenGL context here.
|
||||
if (context) {
|
||||
context->flush();
|
||||
context->flushAndSubmit();
|
||||
}
|
||||
|
||||
// Submit the scribbled layer to the embedder for presentation.
|
||||
|
||||
@@ -152,7 +152,7 @@ void VulkanSurfaceProducer::OnSurfacesPresented(
|
||||
// Do a single flush for all canvases derived from the context.
|
||||
{
|
||||
TRACE_EVENT0("flutter", "GrContext::flushAndSignalSemaphores");
|
||||
context_->flush();
|
||||
context_->flushAndSubmit();
|
||||
}
|
||||
|
||||
if (!TransitionSurfacesToExternal(surfaces))
|
||||
|
||||
@@ -488,7 +488,7 @@ bool VulkanSwapchain::Submit() {
|
||||
// Step 0:
|
||||
// Make sure Skia has flushed all work for the surface to the gpu.
|
||||
// ---------------------------------------------------------------------------
|
||||
surface->flush();
|
||||
surface->flushAndSubmit();
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Step 1:
|
||||
|
||||
Reference in New Issue
Block a user