summaryrefslogtreecommitdiff
path: root/gdk/gdktexture.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix minor typosYuri Chornoivan2020-06-181-1/+1
|
* docs: Remove redundant SECTIONEmmanuele Bassi2020-05-121-17/+5
| | | | We already have a SECTION stanza for gtk-doc.
* docs: Fix several missing references in the documentationCorentin Noël2020-05-111-1/+1
| | | | This fixes several typos and missing references
* icontheme: Return textures from load_icon{,_for_scale}Timm Bäder2019-09-091-1/+0
|
* snapshot: Redo debug messagesBenjamin Otte2018-04-241-7/+2
| | | | | Instead of every snapshot function having debug messages, have an explicit gtk_snapshot_push_debug() function that appends a debug node.
* texture: Add gdk_texture_save_to_png()Benjamin Otte2018-04-121-0/+47
| | | | | It's needed for debugging Timm's code, so better have it here than hidden in my random-patch vault.
* rendernode: Check cairo surface status after creationTimm Bäder2018-03-201-0/+7
|
* texture: Fix documentation block of gdk_texture_downloadRico Tzschichholz2018-03-191-2/+2
|
* texture: Fix compilation by avoiding to include not-yet available headersRico Tzschichholz2018-03-181-2/+10
|
* gdk: Remove gdk_texture_new_from_data()Benjamin Otte2018-03-181-42/+0
| | | | Use gdk_memory_texture_new() instead.
* texture: Implement GdkPaintableBenjamin Otte2018-03-161-1/+55
| | | | | This is kind of evil because we need to link to GTK to be able to snapshot, but I hope nobody notices.
* texture: Change download vfuncBenjamin Otte2018-03-121-5/+23
| | | | | | | | | | | | | | | | A problem with textures is that they can become too big for GPU memory, which would require tiling. But for tiling we only need to download the pixels needed by the tile. Similarly, there might be interest to not upload full textures if a renderer knows it only needs a small part. Both of these methods require the ability to specify an area of the texture to be downloaded. So change the download vfunc to include this parameter now before we add even more textures later. A private gdk_texture_download_area() function has also been added, but nobody is using it yet.
* texture: Add GdkMemoryTextureBenjamin Otte2018-03-071-162/+34
| | | | | | | | | | | | | | | | GdkMemoryTexture is a texture implementation for holding data in memory (read: GBytes). You specify the GdkMemoryFormat that data is in and off you go. Renderers can use this to add uploads in various different formats and don't need to fallback to GDK doing the conersion on the CPU. Supported formats can be extended if we need new ones, for now I just added the relevant ones for Cairo and GdkPixbuf. The constructor is also private still, because I'm not sure we want to export GdkMemoryFormat. Wrappers that do from_cairo_surface() and for_pixbuf() do exist though.
* gdk: Split out GL textureBenjamin Otte2018-03-071-202/+1
| | | | | | | Put GdkGLTexture into its own file and rename the API to gdk_gl_texture_foo() instead of gdk_texture_foo_for_gl(). Apart from naming, no actual code changes.
* The big versioning cleanupMatthias Clasen2018-02-061-26/+0
| | | | | | | Remove all the old 2.x and 3.x version annotations. GTK+ 4 is a new start, and from the perspective of a GTK+ 4 developer all these APIs have been around since the beginning.
* texture: Add sanity checks to constructorsBenjamin Otte2018-02-021-0/+8
| | | | | width, height and GL texture ID may not be 0, so return_if_fail() if they are.
* texture: Make the texture id a guintBenjamin Otte2018-02-021-3/+3
| | | | Texture IDs are unsigned, so treat them like that.
* Document new texture apiMatthias Clasen2018-01-171-0/+33
|
* Add a way to release GL resourcesMatthias Clasen2018-01-171-6/+66
| | | | | | | | | | The inspector may hold on to render nodes and textures beyond the lifetime of the widget (and thus the GL resources). To handle this situation, allow the widget to explicitly release the GL resources, and make the texture available on the clent-side as a cairo surface. This lets the recorder still show the content after the widget is gone.
* gdk: Add a gl texture implementationMatthias Clasen2018-01-171-0/+109
| | | | | This will be used to pass a GL textures from the application (or rather, GtkGLArea) down to the GSK GL renderer.
* GdkTexture: Add a missing (array) annotationTimm Bäder2018-01-021-1/+1
|
* gdk: Fill in some blanks in the docsMatthias Clasen2017-12-041-1/+1
| | | | This is just an initial cut; more work is needed.
* Add a long description for GdkTextureMatthias Clasen2017-12-041-0/+16
|
* Remove gdkprivate.hMatthias Clasen2017-11-171-0/+1
| | | | | This is one-too-many private headers. Move the few declarations here to gdkinternals.h.
* Fix some typosMatthias Clasen2017-11-041-5/+13
| | | | Correct function names in the docs, etc.
* texture: Add gdk_texture_new_from_file()Benjamin Otte2017-11-041-5/+78
| | | | | | | and gdk_texture_new_from_resource(). While doing set, turn all GDK_AVAILABLE_IN_3_90 into GDK_AVAILABLE_IN_3_94 because that's now true after the renaming.
* GskTexture => GdkTextureBenjamin Otte2017-11-041-0/+556
We want this thing to replace GdkPixbuf, so it has to live in GDK.