DM: remove unnecessary use of std::function
This draw_to_canvas() function doesn't need the power of std::function.
This skips a copy or two, which is nice, and seems to clear
up most of my MSAN problems. Why? I do not know.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1718633002
CQ_EXTRA_TRYBOTS=client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-MSAN-Trybot
Review URL: https://codereview.chromium.org/1718633002
diff --git a/tools/dm_flags.json b/tools/dm_flags.json
index 5950dfa..1191ac9 100644
--- a/tools/dm_flags.json
+++ b/tools/dm_flags.json
@@ -2076,8 +2076,20 @@
"--config",
"565",
"8888",
+ "gpu",
+ "upright-matrix-8888",
+ "upright-matrix-gpu",
+ "sp-8888",
+ "twice-8888",
+ "2ndpic-8888",
+ "remote-8888",
+ "remote_cache-8888",
+ "msaa16",
"pdf",
"pdf_poppler",
+ "serialize-8888",
+ "tiles_rt-8888",
+ "pic-8888",
"--src",
"tests",
"gm",