From 98fbe87a26f5b4ef480c1f68526479e0b7121ddd Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 27 Jun 2022 11:48:59 -0600 Subject: [PATCH] [benchmark-font] Disable quadratic callback We are interested in the quadratic-to-cubic codepath benchmarking. --- perf/benchmark-font.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/perf/benchmark-font.cc b/perf/benchmark-font.cc index 86282d6de..98b6310d2 100644 --- a/perf/benchmark-font.cc +++ b/perf/benchmark-font.cc @@ -49,8 +49,8 @@ _hb_move_to (hb_draw_funcs_t *, void *, hb_draw_state_t *, float, float, void *) static void _hb_line_to (hb_draw_funcs_t *, void *, hb_draw_state_t *, float, float, void *) {} -static void -_hb_quadratic_to (hb_draw_funcs_t *, void *, hb_draw_state_t *, float, float, float, float, void *) {} +//static void +//_hb_quadratic_to (hb_draw_funcs_t *, void *, hb_draw_state_t *, float, float, float, float, void *) {} static void _hb_cubic_to (hb_draw_funcs_t *, void *, hb_draw_state_t *, float, float, float, float, float, float, void *) {} @@ -64,7 +64,7 @@ _draw_funcs_create (void) hb_draw_funcs_t *draw_funcs = hb_draw_funcs_create (); hb_draw_funcs_set_move_to_func (draw_funcs, _hb_move_to, nullptr, nullptr); hb_draw_funcs_set_line_to_func (draw_funcs, _hb_line_to, nullptr, nullptr); - hb_draw_funcs_set_quadratic_to_func (draw_funcs, _hb_quadratic_to, nullptr, nullptr); + //hb_draw_funcs_set_quadratic_to_func (draw_funcs, _hb_quadratic_to, nullptr, nullptr); hb_draw_funcs_set_cubic_to_func (draw_funcs, _hb_cubic_to, nullptr, nullptr); hb_draw_funcs_set_close_path_func (draw_funcs, _hb_close_path, nullptr, nullptr); return draw_funcs;