Skip to content

Commit

Permalink
[flow] remove flush from SceneUpdateContext::ExecutePaintTasks (flutt…
Browse files Browse the repository at this point in the history
…er#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
  • Loading branch information
freiling authored Jul 14, 2017
1 parent f56da86 commit e758dc3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion flow/scene_update_context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit e758dc3

Please sign in to comment.