From fd6da1b2df472aefb9063b245e10805a894184f2 Mon Sep 17 00:00:00 2001 From: freiling Date: Fri, 14 Jul 2017 12:06:10 -0700 Subject: [PATCH] [flow] remove flush from SceneUpdateContext::ExecutePaintTasks (flutter/engine#3863) Instead of flushing each canvas, flush once on the context from which each of the canvas is derived. This gives us a significant performance increase on the fuchsia vulkan backend --- engine/src/flutter/flow/scene_update_context.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/engine/src/flutter/flow/scene_update_context.cc b/engine/src/flutter/flow/scene_update_context.cc index 19571b2f7b..1e3dece8ce 100644 --- a/engine/src/flutter/flow/scene_update_context.cc +++ b/engine/src/flutter/flow/scene_update_context.cc @@ -117,7 +117,6 @@ void SceneUpdateContext::ExecutePaintTasks( canvas->translate(-task.left, -task.top); for (Layer* layer : task.layers) layer->Paint(context); - canvas->flush(); } paint_tasks_.clear();