[cairo] Internal function renames

This commit is contained in:
Behdad Esfahbod 2023-01-16 18:07:39 -07:00
parent e4a41f5e16
commit f38e35ebc3
3 changed files with 47 additions and 47 deletions

View File

@ -91,7 +91,7 @@ _hb_cairo_destroy_blob (void *p)
} }
hb_bool_t hb_bool_t
hb_cairo_paint_glyph_image (cairo_t *cr, _hb_cairo_paint_glyph_image (cairo_t *cr,
hb_blob_t *blob, hb_blob_t *blob,
unsigned width, unsigned width,
unsigned height, unsigned height,
@ -273,7 +273,7 @@ _hb_cairo_normalize_color_line (hb_color_stop_t *stops,
} }
void void
hb_cairo_paint_linear_gradient (cairo_t *cr, _hb_cairo_paint_linear_gradient (cairo_t *cr,
hb_color_line_t *color_line, hb_color_line_t *color_line,
float x0, float y0, float x0, float y0,
float x1, float y1, float x1, float y1,
@ -322,7 +322,7 @@ hb_cairo_paint_linear_gradient (cairo_t *cr,
} }
void void
hb_cairo_paint_radial_gradient (cairo_t *cr, _hb_cairo_paint_radial_gradient (cairo_t *cr,
hb_color_line_t *color_line, hb_color_line_t *color_line,
float x0, float y0, float r0, float x0, float y0, float r0,
float x1, float y1, float r1) float x1, float y1, float r1)
@ -789,7 +789,7 @@ done:
} }
void void
hb_cairo_paint_sweep_gradient (cairo_t *cr, _hb_cairo_paint_sweep_gradient (cairo_t *cr,
hb_color_line_t *color_line, hb_color_line_t *color_line,
float cx, float cy, float cx, float cy,
float start_angle, float start_angle,

View File

@ -32,7 +32,7 @@
static inline cairo_operator_t static inline cairo_operator_t
hb_paint_composite_mode_to_cairo (hb_paint_composite_mode_t mode) _hb_paint_composite_mode_to_cairo (hb_paint_composite_mode_t mode)
{ {
switch (mode) switch (mode)
{ {
@ -69,7 +69,7 @@ hb_paint_composite_mode_to_cairo (hb_paint_composite_mode_t mode)
} }
HB_INTERNAL hb_bool_t HB_INTERNAL hb_bool_t
hb_cairo_paint_glyph_image (cairo_t *cr, _hb_cairo_paint_glyph_image (cairo_t *cr,
hb_blob_t *blob, hb_blob_t *blob,
unsigned width, unsigned width,
unsigned height, unsigned height,
@ -78,20 +78,20 @@ hb_cairo_paint_glyph_image (cairo_t *cr,
hb_glyph_extents_t *extents); hb_glyph_extents_t *extents);
HB_INTERNAL void HB_INTERNAL void
hb_cairo_paint_linear_gradient (cairo_t *cr, _hb_cairo_paint_linear_gradient (cairo_t *cr,
hb_color_line_t *color_line, hb_color_line_t *color_line,
float x0, float y0, float x0, float y0,
float x1, float y1, float x1, float y1,
float x2, float y2); float x2, float y2);
HB_INTERNAL void HB_INTERNAL void
hb_cairo_paint_radial_gradient (cairo_t *cr, _hb_cairo_paint_radial_gradient (cairo_t *cr,
hb_color_line_t *color_line, hb_color_line_t *color_line,
float x0, float y0, float r0, float x0, float y0, float r0,
float x1, float y1, float r1); float x1, float y1, float r1);
HB_INTERNAL void HB_INTERNAL void
hb_cairo_paint_sweep_gradient (cairo_t *cr, _hb_cairo_paint_sweep_gradient (cairo_t *cr,
hb_color_line_t *color_line, hb_color_line_t *color_line,
float x0, float y0, float x0, float y0,
float start_angle, float end_angle); float start_angle, float end_angle);

View File

@ -227,7 +227,7 @@ hb_cairo_pop_group (hb_paint_funcs_t *pfuncs HB_UNUSED,
cairo_t *cr = (cairo_t *) paint_data; cairo_t *cr = (cairo_t *) paint_data;
cairo_pop_group_to_source (cr); cairo_pop_group_to_source (cr);
cairo_set_operator (cr, hb_paint_composite_mode_to_cairo (mode)); cairo_set_operator (cr, _hb_paint_composite_mode_to_cairo (mode));
cairo_paint (cr); cairo_paint (cr);
cairo_restore (cr); cairo_restore (cr);
@ -263,7 +263,7 @@ hb_cairo_paint_image (hb_paint_funcs_t *pfuncs HB_UNUSED,
{ {
cairo_t *cr = (cairo_t *) paint_data; cairo_t *cr = (cairo_t *) paint_data;
return hb_cairo_paint_glyph_image (cr, blob, width, height, format, slant, extents); return _hb_cairo_paint_glyph_image (cr, blob, width, height, format, slant, extents);
} }
static void static void
@ -277,7 +277,7 @@ hb_cairo_paint_linear_gradient (hb_paint_funcs_t *pfuncs HB_UNUSED,
{ {
cairo_t *cr = (cairo_t *)paint_data; cairo_t *cr = (cairo_t *)paint_data;
hb_cairo_paint_linear_gradient (cr, color_line, x0, y0, x1, y1, x2, y2); _hb_cairo_paint_linear_gradient (cr, color_line, x0, y0, x1, y1, x2, y2);
} }
static void static void
@ -290,7 +290,7 @@ hb_cairo_paint_radial_gradient (hb_paint_funcs_t *pfuncs HB_UNUSED,
{ {
cairo_t *cr = (cairo_t *)paint_data; cairo_t *cr = (cairo_t *)paint_data;
hb_cairo_paint_radial_gradient (cr, color_line, x0, y0, r0, x1, y1, r1); _hb_cairo_paint_radial_gradient (cr, color_line, x0, y0, r0, x1, y1, r1);
} }
static void static void
@ -303,7 +303,7 @@ hb_cairo_paint_sweep_gradient (hb_paint_funcs_t *pfuncs HB_UNUSED,
{ {
cairo_t *cr = (cairo_t *) paint_data; cairo_t *cr = (cairo_t *) paint_data;
hb_cairo_paint_sweep_gradient (cr, color_line, x0, y0, start_angle, end_angle); _hb_cairo_paint_sweep_gradient (cr, color_line, x0, y0, start_angle, end_angle);
} }
static inline void free_static_cairo_paint_funcs (); static inline void free_static_cairo_paint_funcs ();