From e758dc361af714430073cb878829a4d18d7aea03 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 (#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 --- flow/scene_update_context.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/flow/scene_update_context.cc b/flow/scene_update_context.cc index 19571b2f7..1e3dece8c 100644 --- a/flow/scene_update_context.cc +++ b/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(); -- GitLab