Debian Codegraph @

gsk/gpu/gskgpubuffer.c

raw symbols SCIP
1 #cxx . . $ `<file>/gsk/gpu/gskgpubuffer.c`/include "config.h"cxx . . $ `<file>/build/config.h`/
2
3 #include "gskgpubufferprivate.h"cxx . . $ `<file>/gsk/gpu/gskgpubufferprivate.h`/
4
5 #include <gdk/gdkprofilerprivate.h>cxx . . $ `<file>/gdk/gdkprofilerprivate.h`/
6
7 typedef struct _GskGpuBufferPrivatecxx . . $ _GskGpuBufferPrivate# GskGpuBufferPrivatecxx . . $ GskGpuBufferPrivate#;
8
9 struct _GskGpuBufferPrivatecxx . . $ _GskGpuBufferPrivate#
10 {
11 gsizecxx . . $ gsize# sizecxx . . $ _GskGpuBufferPrivate#size.;
12 };
13
14 G_DEFINE_TYPE_WITH_PRIVATEcxx . . $ `<external>/9567554376676449156/gtype.h:1876:9`! (GskGpuBuffer, gsk_gpu_buffer, G_TYPE_OBJECTcxx . . $ `<external>/9567554376676449156/gtype.h:189:9`!)
15
16 static guintcxx . . $ guint# profiler_buffer_uploads_idcxx . . $ profiler_buffer_uploads_id.;
17 static gint64cxx . . $ gint64# profiler_buffer_uploadscxx . . $ profiler_buffer_uploads.;
18
19 static void
20 gsk_gpu_buffer_class_initcxx . . $ gsk_gpu_buffer_class_init(23218a27d0f52706). (GskGpuBufferClasscxx . . $ GskGpuBufferClass# *klass)
21 {
22 profiler_buffer_uploads_idcxx . . $ profiler_buffer_uploads_id. = gdk_profiler_define_int_countercxx . . $ `gdk/gdkprofilerprivate.h:89:9`! ("buffer-uploads", "Number of bytes uploaded to GPU");
23 }
24
25 static void
26 gsk_gpu_buffer_initcxx . . $ gsk_gpu_buffer_init(e6f456915c064964). (GskGpuBuffercxx . . $ GskGpuBuffer# *self)
27 {
28 }
29
30 void
31 gsk_gpu_buffer_setupcxx . . $ gsk_gpu_buffer_setup(6e8013197f29c423). (GskGpuBuffercxx . . $ GskGpuBuffer# *self,
32 gsizecxx . . $ gsize# size)
33 {
34 GskGpuBufferPrivatecxx . . $ GskGpuBufferPrivate# *priv = gsk_gpu_buffer_get_instance_privatecxx . . $ gsk_gpu_buffer_get_instance_private(8e7fde16aa133405). (self);
35
36 priv->sizecxx . . $ _GskGpuBufferPrivate#size. = size;
37 }
38
39 gsizecxx . . $ gsize#
40 gsk_gpu_buffer_get_sizecxx . . $ gsk_gpu_buffer_get_size(f3b1229cd493de4f). (GskGpuBuffercxx . . $ GskGpuBuffer# *self)
41 {
42 GskGpuBufferPrivatecxx . . $ GskGpuBufferPrivate# *priv = gsk_gpu_buffer_get_instance_privatecxx . . $ gsk_gpu_buffer_get_instance_private(8e7fde16aa133405). (self);
43
44 return priv->sizecxx . . $ _GskGpuBufferPrivate#size.;
45 }
46
47 gucharcxx . . $ guchar# *
48 gsk_gpu_buffer_mapcxx . . $ gsk_gpu_buffer_map(b8ca4647f63ced15). (GskGpuBuffercxx . . $ GskGpuBuffer# *self)
49 {
50 return GSK_GPU_BUFFER_GET_CLASScxx . . $ `gsk/gpu/gskgpubufferprivate.h:12:9`! (self)->mapcxx . . $ _GskGpuBufferClass#map. (self);
51 }
52
53 void
54 gsk_gpu_buffer_unmapcxx . . $ gsk_gpu_buffer_unmap(6e8013197f29c423). (GskGpuBuffercxx . . $ GskGpuBuffer# *self,
55 gsizecxx . . $ gsize# used)
56 {
57 GSK_GPU_BUFFER_GET_CLASScxx . . $ `gsk/gpu/gskgpubufferprivate.h:12:9`! (self)->unmapcxx . . $ _GskGpuBufferClass#unmap. (self, used);
58
59 profiler_buffer_uploadscxx . . $ profiler_buffer_uploads. += used;
60 gdk_profiler_set_int_countercxx . . $ `gdk/gdkprofilerprivate.h:91:9`! (profiler_buffer_uploads_id, profiler_buffer_uploads);
61 }
62