diff options
author | Benjamin Otte <otte@redhat.com> | 2018-03-14 04:45:25 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2018-03-16 06:04:44 +0100 |
commit | 7844320f1031cf83f69b3c15e19c7e49d038d0bb (patch) | |
tree | da46cf466cee33af39d083b32c5899816a5adeee /gtk/gtkimagedefinitionprivate.h | |
parent | c9557c207f3ca927af216723e88bfec22a37999e (diff) | |
download | gtk+-7844320f1031cf83f69b3c15e19c7e49d038d0bb.tar.gz |
image: Load resources and files into textures
Instead of loading them into surfaces (which we want to get rid of), we
load into textures.
In fact, we introduce a new paintable subclass called a GtkScaler that
takes care of tracking scaling.
This also ideally gets rid of an extra conversion once renderers learn
to render textures directly.
Diffstat (limited to 'gtk/gtkimagedefinitionprivate.h')
-rw-r--r-- | gtk/gtkimagedefinitionprivate.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gtk/gtkimagedefinitionprivate.h b/gtk/gtkimagedefinitionprivate.h index 66ccae8be5..8cdb26c9e6 100644 --- a/gtk/gtkimagedefinitionprivate.h +++ b/gtk/gtkimagedefinitionprivate.h @@ -29,8 +29,7 @@ GtkImageDefinition * gtk_image_definition_new_empty (void); GtkImageDefinition * gtk_image_definition_new_icon_name (const char *icon_name); GtkImageDefinition * gtk_image_definition_new_gicon (GIcon *gicon); GtkImageDefinition * gtk_image_definition_new_surface (cairo_surface_t *surface); -GtkImageDefinition * gtk_image_definition_new_texture (GdkTexture *texture, - int scale); +GtkImageDefinition * gtk_image_definition_new_texture (GdkTexture *texture); GtkImageDefinition * gtk_image_definition_new_paintable (GdkPaintable *paintable); GtkImageDefinition * gtk_image_definition_ref (GtkImageDefinition *def); |