diff --git a/engine/src/flutter/shell/gpu/gpu_surface_gl_impeller.cc b/engine/src/flutter/shell/gpu/gpu_surface_gl_impeller.cc index 78a8bcaf0a..cc4d74b3cf 100644 --- a/engine/src/flutter/shell/gpu/gpu_surface_gl_impeller.cc +++ b/engine/src/flutter/shell/gpu/gpu_surface_gl_impeller.cc @@ -141,7 +141,7 @@ std::unique_ptr GPUSurfaceGLImpeller::AcquireFrame( auto picture = impeller_dispatcher.EndRecordingAsPicture(); return aiks_context->Render(picture, render_target, - /*reset_host_buffer=*/false); + /*reset_host_buffer=*/true); #endif // EXPERIMENTAL_CANVAS }; diff --git a/engine/src/flutter/shell/gpu/gpu_surface_metal_impeller.mm b/engine/src/flutter/shell/gpu/gpu_surface_metal_impeller.mm index 933ae1a50a..6e8c43763e 100644 --- a/engine/src/flutter/shell/gpu/gpu_surface_metal_impeller.mm +++ b/engine/src/flutter/shell/gpu/gpu_surface_metal_impeller.mm @@ -320,9 +320,9 @@ std::unique_ptr GPUSurfaceMetalImpeller::AcquireFrameFromMTLTextur display_list->Dispatch(impeller_dispatcher, sk_cull_rect); auto picture = impeller_dispatcher.EndRecordingAsPicture(); - const bool reset_host_buffer = surface_frame.submit_info().frame_boundary; const impeller::RenderTarget& render_target = surface->GetTargetRenderPassDescriptor(); - bool render_result = aiks_context->Render(picture, render_target, reset_host_buffer); + bool render_result = + aiks_context->Render(picture, render_target, /*reset_host_buffer=*/true); #endif if (!render_result) { FML_LOG(ERROR) << "Failed to render Impeller frame"; diff --git a/engine/src/flutter/shell/gpu/gpu_surface_vulkan_impeller.cc b/engine/src/flutter/shell/gpu/gpu_surface_vulkan_impeller.cc index 6cd1ea54b4..263c3db64b 100644 --- a/engine/src/flutter/shell/gpu/gpu_surface_vulkan_impeller.cc +++ b/engine/src/flutter/shell/gpu/gpu_surface_vulkan_impeller.cc @@ -103,7 +103,7 @@ std::unique_ptr GPUSurfaceVulkanImpeller::AcquireFrame( SkIRect::MakeWH(cull_rect.width, cull_rect.height)); auto picture = impeller_dispatcher.EndRecordingAsPicture(); return aiks_context->Render(picture, render_target, - /*reset_host_buffer=*/false); + /*reset_host_buffer=*/true); #endif };