提交 e758dc36 编写于 作者: F freiling 提交者: GitHub

[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
上级 f56da86f
...@@ -117,7 +117,6 @@ void SceneUpdateContext::ExecutePaintTasks( ...@@ -117,7 +117,6 @@ void SceneUpdateContext::ExecutePaintTasks(
canvas->translate(-task.left, -task.top); canvas->translate(-task.left, -task.top);
for (Layer* layer : task.layers) for (Layer* layer : task.layers)
layer->Paint(context); layer->Paint(context);
canvas->flush();
} }
paint_tasks_.clear(); paint_tasks_.clear();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册