[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
This commit is contained in:
freiling
2017-07-14 12:06:10 -07:00
committed by GitHub
parent d5cca395b2
commit fd6da1b2df

View File

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