[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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user