From 32f1967142a078ecdb4222c05d62c75710fb74fa Mon Sep 17 00:00:00 2001 From: Victor Kareh Date: Fri, 18 Jun 2021 11:13:17 -0400 Subject: iconcache: Read icons into cairo surfaces We internally read icons as cairo surfaces before converting them to GdkPixbuf. This will allow us to eventually delete a lot of GdkPixbuf manipulation and simplify the drawing codepath. --- src/core/iconcache.h | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'src/core/iconcache.h') diff --git a/src/core/iconcache.h b/src/core/iconcache.h index a558a945..11dc6617 100644 --- a/src/core/iconcache.h +++ b/src/core/iconcache.h @@ -65,16 +65,17 @@ void meta_icon_cache_property_changed (MetaIconCache *icon_cache, Atom atom); gboolean meta_icon_cache_get_icon_invalidated (MetaIconCache *icon_cache); -gboolean meta_read_icons (MetaScreen *screen, - Window xwindow, - char *res_name, - MetaIconCache *icon_cache, - Pixmap wm_hints_pixmap, - Pixmap wm_hints_mask, - GdkPixbuf **iconp, - int ideal_size, - GdkPixbuf **mini_iconp, - int ideal_mini_size); +gboolean meta_read_icons (MetaScreen *screen, + Window xwindow, + char *res_name, + MetaIconCache *icon_cache, + Pixmap wm_hints_pixmap, + Pixmap wm_hints_mask, + cairo_surface_t **iconp, + int ideal_size, + cairo_surface_t **mini_iconp, + int ideal_mini_size, + int scaling_factor); #endif -- cgit v1.2.1