Debian Codegraph @

gsk/gpu/gskgpudevice.c

raw symbols SCIP
1 #cxx . . $ `<file>/gsk/gpu/gskgpudevice.c`/include "config.h"cxx . . $ `<file>/build/config.h`/
2
3 #include "gskgpudeviceprivate.h"cxx . . $ `<file>/gsk/gpu/gskgpudeviceprivate.h`/
4
5 #include "gskgpucacheprivate.h"cxx . . $ `<file>/gsk/gpu/gskgpucacheprivate.h`/
6 #include "gskgpuglobalsopprivate.h"cxx . . $ `<file>/gsk/gpu/gskgpuglobalsopprivate.h`/
7
8 #include "gdk/gdkprofilerprivate.h"cxx . . $ `<file>/gdk/gdkprofilerprivate.h`/
9
10 #include "gsk/gskdebugprivate.h"cxx . . $ `<file>/gsk/gskdebugprivate.h`/
11
12 #define CACHE_TIMEOUTcxx . . $ `gsk/gpu/gskgpudevice.c:12:9`! 15 /* seconds */
13
14 typedef struct _GskGpuDevicePrivatecxx . . $ _GskGpuDevicePrivate# GskGpuDevicePrivatecxx . . $ GskGpuDevicePrivate#;
15
16 struct _GskGpuDevicePrivatecxx . . $ _GskGpuDevicePrivate#
17 {
18 GdkDisplaycxx . . $ GdkDisplay# *displaycxx . . $ _GskGpuDevicePrivate#display.;
19 gsizecxx . . $ gsize# max_image_sizecxx . . $ _GskGpuDevicePrivate#max_image_size.;
20 gsizecxx . . $ gsize# tile_sizecxx . . $ _GskGpuDevicePrivate#tile_size.;
21 gsizecxx . . $ gsize# globals_aligned_sizecxx . . $ _GskGpuDevicePrivate#globals_aligned_size.;
22
23 GskGpuCachecxx . . $ GskGpuCache# *cachecxx . . $ _GskGpuDevicePrivate#cache.; /* we don't own a ref, but manage the cache */
24 guintcxx . . $ guint# cache_gc_sourcecxx . . $ _GskGpuDevicePrivate#cache_gc_source.;
25 int cache_timeoutcxx . . $ _GskGpuDevicePrivate#cache_timeout.; /* in seconds, or -1 to disable gc */
26 };
27
28 G_DEFINE_TYPE_WITH_PRIVATEcxx . . $ `<external>/9567554376676449156/gtype.h:1876:9`! (GskGpuDevice, gsk_gpu_device, G_TYPE_OBJECTcxx . . $ `<external>/9567554376676449156/gtype.h:189:9`!)
29
30 /* Returns TRUE if everything was GC'ed */
31 static gbooleancxx . . $ gboolean#
32 gsk_gpu_device_gccxx . . $ gsk_gpu_device_gc(fb73d71c98fea2cd). (GskGpuDevicecxx . . $ GskGpuDevice# *self,
33 gint64cxx . . $ gint64# timestamp)
34 {
35 GskGpuDevicePrivatecxx . . $ GskGpuDevicePrivate# *priv = gsk_gpu_device_get_instance_privatecxx . . $ gsk_gpu_device_get_instance_private(202caf075fee27f2). (self);
36 gbooleancxx . . $ gboolean# result;
37
38 if (priv->cachecxx . . $ _GskGpuDevicePrivate#cache. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
39 return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
40
41 gsk_gpu_device_make_currentcxx . . $ gsk_gpu_device_make_current(4d47fb05a7f505ef). (self);
42
43 result = gsk_gpu_cache_gccxx . . $ gsk_gpu_cache_gc(a2965bdc0c7e2616). (priv->cachecxx . . $ _GskGpuDevicePrivate#cache.,
44 priv->cache_timeoutcxx . . $ _GskGpuDevicePrivate#cache_timeout. >= 0 ? priv->cache_timeoutcxx . . $ _GskGpuDevicePrivate#cache_timeout. * G_TIME_SPAN_SECONDcxx . . $ `<external>/5362845561472519165/gdatetime.h:71:9`! : -1,
45 timestamp);
46 if (result)
47 g_clear_objectcxx . . $ `<external>/1341695927569185362/gobject.h:695:9`! (&priv->cache);
48
49 return result;
50 }
51
52 static gbooleancxx . . $ gboolean#
53 cache_gc_cbcxx . . $ cache_gc_cb(dedf1e9b1c614a07). (gpointercxx . . $ gpointer# data)
54 {
55 GskGpuDevicecxx . . $ GskGpuDevice# *self = data;
56 GskGpuDevicePrivatecxx . . $ GskGpuDevicePrivate# *priv = gsk_gpu_device_get_instance_privatecxx . . $ gsk_gpu_device_get_instance_private(202caf075fee27f2). (self);
57 gint64cxx . . $ gint64# timestamp;
58 gbooleancxx . . $ gboolean# result = G_SOURCE_CONTINUEcxx . . $ `<external>/1856471541377536744/gmain.h:485:9`!;
59
60 timestamp = g_get_monotonic_timecxx . . $ g_get_monotonic_time(da6335ded91d79c2). ();
61 GSK_DEBUGcxx . . $ `gsk/gskdebugprivate.h:41:9`! (CACHE, "Periodic GC (timestamp %lld)", (long long) timestamp);
62
63 /* gc can collect the device if all windows are closed and only
64 * the cache is keeping it alive */
65 g_object_refcxx . . $ `<external>/1341695927569185362/gobject.h:533:9`! (self);
66
67 if (gsk_gpu_device_gccxx . . $ gsk_gpu_device_gc(fb73d71c98fea2cd). (self, timestamp))
68 {
69 priv->cache_gc_sourcecxx . . $ _GskGpuDevicePrivate#cache_gc_source. = 0;
70 result = G_SOURCE_REMOVEcxx . . $ `<external>/1856471541377536744/gmain.h:475:9`!;
71 }
72
73 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (self);
74
75 return result;
76 }
77
78 void
79 gsk_gpu_device_maybe_gccxx . . $ gsk_gpu_device_maybe_gc(4d47fb05a7f505ef). (GskGpuDevicecxx . . $ GskGpuDevice# *self)
80 {
81 GskGpuDevicePrivatecxx . . $ GskGpuDevicePrivate# *priv = gsk_gpu_device_get_instance_privatecxx . . $ gsk_gpu_device_get_instance_private(202caf075fee27f2). (self);
82 gsizecxx . . $ gsize# dead_texture_pixels, dead_textures;
83
84 if (priv->cache_timeoutcxx . . $ _GskGpuDevicePrivate#cache_timeout. < 0)
85 return;
86
87 if (priv->cachecxx . . $ _GskGpuDevicePrivate#cache. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
88 return;
89
90 dead_textures = gsk_gpu_cache_get_dead_texturescxx . . $ gsk_gpu_cache_get_dead_textures(184151cee3db78d1). (priv->cachecxx . . $ _GskGpuDevicePrivate#cache.);
91 dead_texture_pixels = gsk_gpu_cache_get_dead_texture_pixelscxx . . $ gsk_gpu_cache_get_dead_texture_pixels(184151cee3db78d1). (priv->cachecxx . . $ _GskGpuDevicePrivate#cache.);
92
93 if (priv->cache_timeoutcxx . . $ _GskGpuDevicePrivate#cache_timeout. == 0 || dead_textures > 50 || dead_texture_pixels > 1000 * 1000)
94 {
95 GSK_DEBUGcxx . . $ `gsk/gskdebugprivate.h:41:9`! (CACHE, "Pre-frame GC (%" G_GSIZE_FORMATcxx . . $ `<external>/10505296616216143549/glibconfig.h:86:9`! " dead textures, %" G_GSIZE_FORMATcxx . . $ `<external>/10505296616216143549/glibconfig.h:86:9`! " dead pixels)",
96 dead_textures, dead_texture_pixels);
97 gsk_gpu_device_gccxx . . $ gsk_gpu_device_gc(fb73d71c98fea2cd). (self, g_get_monotonic_timecxx . . $ g_get_monotonic_time(da6335ded91d79c2). ());
98 }
99 }
100
101 void
102 gsk_gpu_device_queue_gccxx . . $ gsk_gpu_device_queue_gc(4d47fb05a7f505ef). (GskGpuDevicecxx . . $ GskGpuDevice# *self)
103 {
104 GskGpuDevicePrivatecxx . . $ GskGpuDevicePrivate# *priv = gsk_gpu_device_get_instance_privatecxx . . $ gsk_gpu_device_get_instance_private(202caf075fee27f2). (self);
105
106 if (priv->cache_timeoutcxx . . $ _GskGpuDevicePrivate#cache_timeout. > 0 && !priv->cache_gc_sourcecxx . . $ _GskGpuDevicePrivate#cache_gc_source.)
107 priv->cache_gc_sourcecxx . . $ _GskGpuDevicePrivate#cache_gc_source. = g_timeout_add_secondscxx . . $ g_timeout_add_seconds(ec6d13059821d355). (priv->cache_timeoutcxx . . $ _GskGpuDevicePrivate#cache_timeout., cache_gc_cbcxx . . $ cache_gc_cb(dedf1e9b1c614a07)., self);
108 }
109
110 static void
111 gsk_gpu_device_disposecxx . . $ gsk_gpu_device_dispose(6087475fa43034d3). (GObjectcxx . . $ GObject# *object)
112 {
113 GskGpuDevicecxx . . $ GskGpuDevice# *self = GSK_GPU_DEVICEcxx . . $ `gsk/gpu/gskgpudeviceprivate.h:10:9`! (object);
114 GskGpuDevicePrivatecxx . . $ GskGpuDevicePrivate# *priv = gsk_gpu_device_get_instance_privatecxx . . $ gsk_gpu_device_get_instance_private(202caf075fee27f2). (self);
115
116 g_clear_handle_idcxx . . $ `<external>/1856471541377536744/gmain.h:867:9`! (&priv->cache_gc_source, g_source_remove);
117
118 G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`! (gsk_gpu_device_parent_class)->disposecxx . . $ _GObjectClass#dispose. (object);
119 }
120
121 static void
122 gsk_gpu_device_finalizecxx . . $ gsk_gpu_device_finalize(6087475fa43034d3). (GObjectcxx . . $ GObject# *object)
123 {
124 GskGpuDevicecxx . . $ GskGpuDevice# *self = GSK_GPU_DEVICEcxx . . $ `gsk/gpu/gskgpudeviceprivate.h:10:9`! (object);
125 GskGpuDevicePrivatecxx . . $ GskGpuDevicePrivate# *priv = gsk_gpu_device_get_instance_privatecxx . . $ gsk_gpu_device_get_instance_private(202caf075fee27f2). (self);
126
127 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (priv->displaycxx . . $ _GskGpuDevicePrivate#display.);
128
129 G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`! (gsk_gpu_device_parent_class)->finalizecxx . . $ _GObjectClass#finalize. (object);
130 }
131
132 static void
133 gsk_gpu_device_class_initcxx . . $ gsk_gpu_device_class_init(4d075cbd198c2aa6). (GskGpuDeviceClasscxx . . $ GskGpuDeviceClass# *klass)
134 {
135 GObjectClasscxx . . $ GObjectClass# *object_class = G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`! (klass);
136
137 object_class->disposecxx . . $ _GObjectClass#dispose. = gsk_gpu_device_disposecxx . . $ gsk_gpu_device_dispose(6087475fa43034d3).;
138 object_class->finalizecxx . . $ _GObjectClass#finalize. = gsk_gpu_device_finalizecxx . . $ gsk_gpu_device_finalize(6087475fa43034d3).;
139 }
140
141 static void
142 gsk_gpu_device_initcxx . . $ gsk_gpu_device_init(4d47fb05a7f505ef). (GskGpuDevicecxx . . $ GskGpuDevice# *self)
143 {
144 }
145
146 static inline gsizecxx . . $ gsize#
147 round_upcxx . . $ round_up(80bad76eed2d2579). (gsizecxx . . $ gsize# number, gsizecxx . . $ gsize# divisor)
148 {
149 return (number + divisor - 1) / divisor * divisor;
150 }
151
152 void
153 gsk_gpu_device_setupcxx . . $ gsk_gpu_device_setup(fb49d4d89258f8ed). (GskGpuDevicecxx . . $ GskGpuDevice# *self,
154 GdkDisplaycxx . . $ GdkDisplay# *display,
155 gsizecxx . . $ gsize# max_image_size,
156 gsizecxx . . $ gsize# tile_size,
157 gsizecxx . . $ gsize# globals_alignment)
158 {
159 GskGpuDevicePrivatecxx . . $ GskGpuDevicePrivate# *priv = gsk_gpu_device_get_instance_privatecxx . . $ gsk_gpu_device_get_instance_private(202caf075fee27f2). (self);
160 const char *str;
161
162 priv->displaycxx . . $ _GskGpuDevicePrivate#display. = g_object_refcxx . . $ `<external>/1341695927569185362/gobject.h:533:9`! (display);
163 priv->max_image_sizecxx . . $ _GskGpuDevicePrivate#max_image_size. = max_image_size;
164 priv->tile_sizecxx . . $ _GskGpuDevicePrivate#tile_size. = tile_size;
165 priv->cache_timeoutcxx . . $ _GskGpuDevicePrivate#cache_timeout. = CACHE_TIMEOUTcxx . . $ `gsk/gpu/gskgpudevice.c:12:9`!;
166 priv->globals_aligned_sizecxx . . $ _GskGpuDevicePrivate#globals_aligned_size. = round_upcxx . . $ round_up(80bad76eed2d2579). (sizeof (GskGpuGlobalsInstancecxx . . $ GskGpuGlobalsInstance#), globals_alignment);
167
168 str = g_getenvcxx . . $ g_getenv(fb58d2e09a2a1ce6). ("GSK_CACHE_TIMEOUT");
169 if (str != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
170 {
171 gint64cxx . . $ gint64# value;
172 GErrorcxx . . $ GError# *error = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
173
174 if (!g_ascii_string_to_signedcxx . . $ g_ascii_string_to_signed(3d117235c07554c3). (str, 10, -1, G_MAXINTcxx . . $ `<external>/10505296616216143549/glibconfig.h:39:9`!, &value, &error))
175 {
176 g_warningcxx . . $ `<external>/5169755362661750954/gmessages.h:340:9`! ("Failed to parse GSK_CACHE_TIMEOUT: %s", error->message);
177 g_error_freecxx . . $ g_error_free(2ff7d11a2ecc01bd). (error);
178 }
179 else
180 {
181 priv->cache_timeoutcxx . . $ _GskGpuDevicePrivate#cache_timeout. = (int) value;
182 }
183 }
184
185 if (GSK_DEBUG_CHECKcxx . . $ `gsk/gskdebugprivate.h:31:9`! (CACHE))
186 {
187 if (priv->cache_timeoutcxx . . $ _GskGpuDevicePrivate#cache_timeout. < 0)
188 gdk_debug_messagecxx . . $ gdk_debug_message(326aeb464d16410c). ("Cache GC disabled");
189 else if (priv->cache_timeoutcxx . . $ _GskGpuDevicePrivate#cache_timeout. == 0)
190 gdk_debug_messagecxx . . $ gdk_debug_message(326aeb464d16410c). ("Cache GC before every frame");
191 else
192 gdk_debug_messagecxx . . $ gdk_debug_message(326aeb464d16410c). ("Cache GC timeout: %d seconds", priv->cache_timeoutcxx . . $ _GskGpuDevicePrivate#cache_timeout.);
193 }
194 }
195
196 GdkDisplaycxx . . $ GdkDisplay# *
197 gsk_gpu_device_get_displaycxx . . $ gsk_gpu_device_get_display(4085a5602869895b). (GskGpuDevicecxx . . $ GskGpuDevice# *self)
198 {
199 GskGpuDevicePrivatecxx . . $ GskGpuDevicePrivate# *priv = gsk_gpu_device_get_instance_privatecxx . . $ gsk_gpu_device_get_instance_private(202caf075fee27f2). (self);
200
201 return priv->displaycxx . . $ _GskGpuDevicePrivate#display.;
202 }
203
204 GskGpuCachecxx . . $ GskGpuCache# *
205 gsk_gpu_device_get_cachecxx . . $ gsk_gpu_device_get_cache(71b3d06894263fec). (GskGpuDevicecxx . . $ GskGpuDevice# *self)
206 {
207 GskGpuDevicePrivatecxx . . $ GskGpuDevicePrivate# *priv = gsk_gpu_device_get_instance_privatecxx . . $ gsk_gpu_device_get_instance_private(202caf075fee27f2). (self);
208
209 if (G_LIKELYcxx . . $ `<external>/12741050725406041920/gmacros.h:1284:9`! (priv->cache))
210 return priv->cachecxx . . $ _GskGpuDevicePrivate#cache.;
211
212 priv->cachecxx . . $ _GskGpuDevicePrivate#cache. = gsk_gpu_cache_newcxx . . $ gsk_gpu_cache_new(71b3d06894263fec). (self);
213
214 return priv->cachecxx . . $ _GskGpuDevicePrivate#cache.;
215 }
216
217 /*<private>
218 * gsk_gpu_device_get_max_image_size:
219 * @self: a device
220 *
221 * Returns the max image size supported by this device.
222 *
223 * This maps to `GL_MAX_TEXTURE_SIZE` on GL, but Vulkan is more flexible with
224 * per-format size limits, so this is an estimate and code should still handle
225 * failures of image creation at smaller sizes. (Besides handling them anyway
226 * in case of OOM.)
227 *
228 * Returns: The maximum size in pixels for creating a GskGpuImage
229 **/
230 gsizecxx . . $ gsize#
231 gsk_gpu_device_get_max_image_sizecxx . . $ gsk_gpu_device_get_max_image_size(ebdb0b0bb9241fe2). (GskGpuDevicecxx . . $ GskGpuDevice# *self)
232 {
233 GskGpuDevicePrivatecxx . . $ GskGpuDevicePrivate# *priv = gsk_gpu_device_get_instance_privatecxx . . $ gsk_gpu_device_get_instance_private(202caf075fee27f2). (self);
234
235 return priv->max_image_sizecxx . . $ _GskGpuDevicePrivate#max_image_size.;
236 }
237
238 /*<private>
239 * gsk_gpu_device_get_tile_size:
240 * @self: a device
241 *
242 * The suggested size for tiling images.
243 *
244 * This value will be small enough so that image creation never fails
245 * due to size constraints. It should also not be too large to allow
246 * efficient caching of tiles and evictions of unused tiles (think of
247 * an image editor showing only a section of a large image).
248 *
249 * Returns: The suggested size of tiles when tiling images.
250 **/
251 gsizecxx . . $ gsize#
252 gsk_gpu_device_get_tile_sizecxx . . $ gsk_gpu_device_get_tile_size(ebdb0b0bb9241fe2). (GskGpuDevicecxx . . $ GskGpuDevice# *self)
253 {
254 GskGpuDevicePrivatecxx . . $ GskGpuDevicePrivate# *priv = gsk_gpu_device_get_instance_privatecxx . . $ gsk_gpu_device_get_instance_private(202caf075fee27f2). (self);
255
256 return priv->tile_sizecxx . . $ _GskGpuDevicePrivate#tile_size.;
257 }
258
259 /*<private>
260 * gsk_gpu_device_get_globals_aligned_size:
261 * @self: a device
262 *
263 * The required size for allocating arrays of globals.
264 *
265 * This value will be at least `sizeof (GskGpuGlobalsInstance)` but due to constraints
266 * of how buffers are mapped, it might be larger to allow a single buffer to hold
267 * all the globals instances.
268 *
269 * Returns: The minimum aligned size for a GskGpuGlobalsInstance
270 **/
271 gsizecxx . . $ gsize#
272 gsk_gpu_device_get_globals_aligned_sizecxx . . $ gsk_gpu_device_get_globals_aligned_size(ebdb0b0bb9241fe2). (GskGpuDevicecxx . . $ GskGpuDevice# *self)
273 {
274 GskGpuDevicePrivatecxx . . $ GskGpuDevicePrivate# *priv = gsk_gpu_device_get_instance_privatecxx . . $ gsk_gpu_device_get_instance_private(202caf075fee27f2). (self);
275
276 return priv->globals_aligned_sizecxx . . $ _GskGpuDevicePrivate#globals_aligned_size.;
277 }
278
279 /*<private>
280 * gsk_gpu_device_create_offscreen_image:
281 * @self: the device to create the offscreen in
282 * @with_mipmap: whether to allocate memory for mipmap levels
283 * @format: the desired format
284 * @is_srgb: if the format should be srgb
285 * @width: width of the image
286 * @height: height of the image
287 *
288 * Creates an image suitable for offscreen rendering.
289 *
290 * Note that the format is a hint and the device may choose a different
291 * format if the desired format is not be renderable on the device.
292 *
293 * If width/height is too large or the device is out of memory,
294 * `NULL` may be returned.
295 *
296 * Returns: (nullable): The created image or `NULL` on error.
297 **/
298 GskGpuImagecxx . . $ GskGpuImage# *
299 gsk_gpu_device_create_offscreen_imagecxx . . $ gsk_gpu_device_create_offscreen_image(6b528020e6467c41). (GskGpuDevicecxx . . $ GskGpuDevice# *self,
300 gbooleancxx . . $ gboolean# with_mipmap,
301 GdkMemoryFormatcxx . . $ GdkMemoryFormat# format,
302 gbooleancxx . . $ gboolean# is_srgb,
303 gsizecxx . . $ gsize# width,
304 gsizecxx . . $ gsize# height)
305 {
306 return GSK_GPU_DEVICE_GET_CLASScxx . . $ `gsk/gpu/gskgpudeviceprivate.h:14:9`! (self)->create_offscreen_imagecxx . . $ _GskGpuDeviceClass#create_offscreen_image. (self, with_mipmap, format, is_srgb, width, height);
307 }
308
309 GskGpuImagecxx . . $ GskGpuImage# *
310 gsk_gpu_device_create_atlas_imagecxx . . $ gsk_gpu_device_create_atlas_image(1caf50e10af4e5b7). (GskGpuDevicecxx . . $ GskGpuDevice# *self,
311 gsizecxx . . $ gsize# width,
312 gsizecxx . . $ gsize# height)
313 {
314 return GSK_GPU_DEVICE_GET_CLASScxx . . $ `gsk/gpu/gskgpudeviceprivate.h:14:9`! (self)->create_atlas_imagecxx . . $ _GskGpuDeviceClass#create_atlas_image. (self, width, height);
315 }
316
317 /*<private>
318 * gsk_gpu_device_create_upload_image:
319 * @self: the device to create the offscreen in
320 * @with_mipmap: whether to try to allocate memory for mipmap levels
321 * @format: the desired format
322 * @conv: the desired builtin conversion
323 * @width: width of the image
324 * @height: height of the image
325 *
326 * Creates an image suitable for uploading data into.
327 *
328 * Note that the with_mipmap, format, and conv arguments are all hints and
329 * the device may choose a different format if those are not supported.
330 * The device will choose the most suitable format and the uploading code
331 * should convert on the CPU to that format.
332 *
333 * Returns: (nullable): The created image or `NULL` if the image size was
334 * too large.
335 **/
336 GskGpuImagecxx . . $ GskGpuImage# *
337 gsk_gpu_device_create_upload_imagecxx . . $ gsk_gpu_device_create_upload_image(a07706f50eb86484). (GskGpuDevicecxx . . $ GskGpuDevice# *self,
338 gbooleancxx . . $ gboolean# with_mipmap,
339 GdkMemoryFormatcxx . . $ GdkMemoryFormat# format,
340 GskGpuConversioncxx . . $ GskGpuConversion# conv,
341 gsizecxx . . $ gsize# width,
342 gsizecxx . . $ gsize# height)
343 {
344 return GSK_GPU_DEVICE_GET_CLASScxx . . $ `gsk/gpu/gskgpudeviceprivate.h:14:9`! (self)->create_upload_imagecxx . . $ _GskGpuDeviceClass#create_upload_image. (self, with_mipmap, format, conv, width, height);
345 }
346
347 GskGpuImagecxx . . $ GskGpuImage# *
348 gsk_gpu_device_create_download_imagecxx . . $ gsk_gpu_device_create_download_image(4476b7a14593eca). (GskGpuDevicecxx . . $ GskGpuDevice# *self,
349 GdkMemoryDepthcxx . . $ GdkMemoryDepth# depth,
350 gsizecxx . . $ gsize# width,
351 gsizecxx . . $ gsize# height)
352 {
353 return GSK_GPU_DEVICE_GET_CLASScxx . . $ `gsk/gpu/gskgpudeviceprivate.h:14:9`! (self)->create_download_imagecxx . . $ _GskGpuDeviceClass#create_download_image. (self, depth, width, height);
354 }
355
356 void
357 gsk_gpu_device_make_currentcxx . . $ gsk_gpu_device_make_current(4d47fb05a7f505ef). (GskGpuDevicecxx . . $ GskGpuDevice# *self)
358 {
359 GSK_GPU_DEVICE_GET_CLASScxx . . $ `gsk/gpu/gskgpudeviceprivate.h:14:9`! (self)->make_currentcxx . . $ _GskGpuDeviceClass#make_current. (self);
360 }
361
362 /* }}} */
363 /* vim:set foldmethod=marker: */