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:
egdaniel
2020-05-15 11:40:21 -04:00
committed by GitHub
parent 4d9342f1f3
commit 077e9639c5
3 changed files with 3 additions and 3 deletions

View File

@@ -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.

View File

@@ -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))

View File

@@ -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: