| 1 | #cxx . . $ `<file>/gsk/gpu/gskgpucachedfill.c`/include "config.h"cxx . . $ `<file>/build/config.h`/ |
| 2 | |
| 3 | #include "gskgpucachedfillprivate.h"cxx . . $ `<file>/gsk/gpu/gskgpucachedfillprivate.h`/ |
| 4 | |
| 5 | #include "gskgpucacheprivate.h"cxx . . $ `<file>/gsk/gpu/gskgpucacheprivate.h`/ |
| 6 | #include "gskgpucachedprivate.h"cxx . . $ `<file>/gsk/gpu/gskgpucachedprivate.h`/ |
| 7 | #include "gskgpudeviceprivate.h"cxx . . $ `<file>/gsk/gpu/gskgpudeviceprivate.h`/ |
| 8 | #include "gskgpuuploadopprivate.h"cxx . . $ `<file>/gsk/gpu/gskgpuuploadopprivate.h`/ |
| 9 | #include "gskgpuutilsprivate.h"cxx . . $ `<file>/gsk/gpu/gskgpuutilsprivate.h`/ |
| 10 | #include "gskgpuimageprivate.h"cxx . . $ `<file>/gsk/gpu/gskgpuimageprivate.h`/ |
| 11 | #include "gskpathprivate.h"cxx . . $ `<file>/gsk/gskpathprivate.h`/ |
| 12 | #include "gskrectprivate.h"cxx . . $ `<file>/gsk/gskrectprivate.h`/ |
| 13 | |
| 14 | #include "gdk/gdkcolorstateprivate.h"cxx . . $ `<file>/gdk/gdkcolorstateprivate.h`/ |
| 15 | #include "gdk/gdkcolorprivate.h"cxx . . $ `<file>/gdk/gdkcolorprivate.h`/ |
| 16 | #include "gdk/gdkcairoprivate.h"cxx . . $ `<file>/gdk/gdkcairoprivate.h`/ |
| 17 | |
| 18 | #include "gsk/gskprivate.h"cxx . . $ `<file>/gsk/gskprivate.h`/ |
| 19 | |
| 20 | #define SUBPIXEL_SCALE_Xcxx . . $ `gsk/gpu/gskgpucachedfill.c:20:9`! 32 |
| 21 | #define SUBPIXEL_SCALE_Ycxx . . $ `gsk/gpu/gskgpucachedfill.c:21:9`! 32 |
| 22 | |
| 23 | typedef struct _GskGpuCachedFillcxx . . $ _GskGpuCachedFill# GskGpuCachedFillcxx . . $ GskGpuCachedFill#; |
| 24 | |
| 25 | struct _GskGpuCachedFillcxx . . $ _GskGpuCachedFill# |
| 26 | { |
| 27 | GskGpuCachedcxx . . $ GskGpuCached# parentcxx . . $ _GskGpuCachedFill#parent.; |
| 28 | |
| 29 | GskPathcxx . . $ GskPath# *pathcxx . . $ _GskGpuCachedFill#path.; |
| 30 | GskFillRulecxx . . $ GskFillRule# fill_rulecxx . . $ _GskGpuCachedFill#fill_rule.; |
| 31 | float sxcxx . . $ _GskGpuCachedFill#sx., sycxx . . $ _GskGpuCachedFill#sy.; |
| 32 | |
| 33 | /* Subpixel position of the path bounds wrt to device grid */ |
| 34 | guintcxx . . $ guint# fxcxx . . $ _GskGpuCachedFill#fx., fycxx . . $ _GskGpuCachedFill#fy.; |
| 35 | |
| 36 | GskGpuImagecxx . . $ GskGpuImage# *imagecxx . . $ _GskGpuCachedFill#image.; |
| 37 | graphene_point_tcxx . . $ graphene_point_t# image_offsetcxx . . $ _GskGpuCachedFill#image_offset.; |
| 38 | }; |
| 39 | |
| 40 | static void |
| 41 | gsk_gpu_cached_fill_freecxx . . $ gsk_gpu_cached_fill_free(5a53b82634f8e5da). (GskGpuCachedcxx . . $ GskGpuCached# *cached) |
| 42 | { |
| 43 | GskGpuCachedFillcxx . . $ GskGpuCachedFill# *self = (GskGpuCachedFillcxx . . $ GskGpuCachedFill# *) cached; |
| 44 | GskGpuCachePrivatecxx . . $ GskGpuCachePrivate# *priv = gsk_gpu_cache_get_privatecxx . . $ gsk_gpu_cache_get_private(15a7619203257844). (cached->cachecxx . . $ _GskGpuCached#cache.); |
| 45 | |
| 46 | g_hash_table_removecxx . . $ g_hash_table_remove(453ebbf4abdbe50e). (priv->fill_cachecxx . . $ _GskGpuCachePrivate#fill_cache., self); |
| 47 | |
| 48 | gsk_path_unrefcxx . . $ gsk_path_unref(84da5b40fdd6197f). (self->pathcxx . . $ _GskGpuCachedFill#path.); |
| 49 | g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (self->imagecxx . . $ _GskGpuCachedFill#image.); |
| 50 | |
| 51 | g_freecxx . . $ g_free(5d22bdacc48458e8). (self); |
| 52 | } |
| 53 | |
| 54 | static gbooleancxx . . $ gboolean# |
| 55 | gsk_gpu_cached_fill_should_collectcxx . . $ gsk_gpu_cached_fill_should_collect(8e8e89998884adad). (GskGpuCachedcxx . . $ GskGpuCached# *cached, |
| 56 | gint64cxx . . $ gint64# cache_timeout, |
| 57 | gint64cxx . . $ gint64# timestamp) |
| 58 | { |
| 59 | if (gsk_gpu_cached_is_oldcxx . . $ gsk_gpu_cached_is_old(8e8e89998884adad). (cached, cache_timeout, timestamp)) |
| 60 | { |
| 61 | if (cached->atlascxx . . $ _GskGpuCached#atlas.) |
| 62 | gsk_gpu_cached_set_stalecxx . . $ gsk_gpu_cached_set_stale(e295147961fe45a0). (cached, TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!); |
| 63 | else |
| 64 | return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!; |
| 65 | } |
| 66 | |
| 67 | /* Fills are only collected when their atlas is freed */ |
| 68 | return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 69 | } |
| 70 | |
| 71 | static guintcxx . . $ guint# |
| 72 | gsk_gpu_cached_fill_hashcxx . . $ gsk_gpu_cached_fill_hash(b11f534102b1ad6). (gconstpointercxx . . $ gconstpointer# data) |
| 73 | { |
| 74 | const GskGpuCachedFillcxx . . $ GskGpuCachedFill# *self = data; |
| 75 | |
| 76 | return GPOINTER_TO_UINTcxx . . $ `<external>/10505296616216143549/glibconfig.h:104:9`! (self->path) ^ |
| 77 | (self->fill_rulecxx . . $ _GskGpuCachedFill#fill_rule.) << 28 ^ |
| 78 | (((guintcxx . . $ guint#) (self->sxcxx . . $ _GskGpuCachedFill#sx. * 16)) << 16) ^ |
| 79 | ((guintcxx . . $ guint#) (self->sycxx . . $ _GskGpuCachedFill#sy. * 16) << 8) ^ |
| 80 | (self->fxcxx . . $ _GskGpuCachedFill#fx. << 4) ^ |
| 81 | self->fycxx . . $ _GskGpuCachedFill#fy.; |
| 82 | } |
| 83 | |
| 84 | static gbooleancxx . . $ gboolean# |
| 85 | gsk_gpu_cached_fill_equalcxx . . $ gsk_gpu_cached_fill_equal(9148c8c3ff42c9d8). (gconstpointercxx . . $ gconstpointer# v1, |
| 86 | gconstpointercxx . . $ gconstpointer# v2) |
| 87 | { |
| 88 | const GskGpuCachedFillcxx . . $ GskGpuCachedFill# *fill1 = v1; |
| 89 | const GskGpuCachedFillcxx . . $ GskGpuCachedFill# *fill2 = v2; |
| 90 | |
| 91 | return fill1->fxcxx . . $ _GskGpuCachedFill#fx. == fill2->fxcxx . . $ _GskGpuCachedFill#fx. && |
| 92 | fill1->fycxx . . $ _GskGpuCachedFill#fy. == fill2->fycxx . . $ _GskGpuCachedFill#fy. && |
| 93 | fill1->pathcxx . . $ _GskGpuCachedFill#path. == fill2->pathcxx . . $ _GskGpuCachedFill#path. && |
| 94 | fill1->fill_rulecxx . . $ _GskGpuCachedFill#fill_rule. == fill2->fill_rulecxx . . $ _GskGpuCachedFill#fill_rule. && |
| 95 | fill1->sxcxx . . $ _GskGpuCachedFill#sx. == fill2->sxcxx . . $ _GskGpuCachedFill#sx. && |
| 96 | fill1->sycxx . . $ _GskGpuCachedFill#sy. == fill2->sycxx . . $ _GskGpuCachedFill#sy.; |
| 97 | } |
| 98 | |
| 99 | static const GskGpuCachedClasscxx . . $ GskGpuCachedClass# GSK_GPU_CACHED_FILL_CLASScxx . . $ GSK_GPU_CACHED_FILL_CLASS. = |
| 100 | { |
| 101 | sizeof (GskGpuCachedFillcxx . . $ GskGpuCachedFill#), |
| 102 | "Fill", |
| 103 | gsk_gpu_cached_fill_freecxx . . $ gsk_gpu_cached_fill_free(5a53b82634f8e5da)., |
| 104 | gsk_gpu_cached_fill_should_collectcxx . . $ gsk_gpu_cached_fill_should_collect(8e8e89998884adad). |
| 105 | }; |
| 106 | |
| 107 | typedef struct _FillDatacxx . . $ _FillData# FillDatacxx . . $ FillData#; |
| 108 | struct _FillDatacxx . . $ _FillData# |
| 109 | { |
| 110 | GskPathcxx . . $ GskPath# *pathcxx . . $ _FillData#path.; |
| 111 | GskFillRulecxx . . $ GskFillRule# fill_rulecxx . . $ _FillData#fill_rule.; |
| 112 | }; |
| 113 | |
| 114 | static void |
| 115 | fill_data_freecxx . . $ fill_data_free(5d22bdacc48458e8). (gpointercxx . . $ gpointer# data) |
| 116 | { |
| 117 | FillDatacxx . . $ FillData# *fill = data; |
| 118 | |
| 119 | gsk_path_unrefcxx . . $ gsk_path_unref(84da5b40fdd6197f). (fill->pathcxx . . $ _FillData#path.); |
| 120 | g_freecxx . . $ g_free(5d22bdacc48458e8). (fill); |
| 121 | } |
| 122 | |
| 123 | static void |
| 124 | fill_pathcxx . . $ fill_path(15fd61528eba4e30). (gpointercxx . . $ gpointer# data, |
| 125 | cairo_tcxx . . $ cairo_t# *cr) |
| 126 | { |
| 127 | FillDatacxx . . $ FillData# *fill = data; |
| 128 | |
| 129 | cairo_set_source_rgbacxx . . $ cairo_set_source_rgba(1653902e9f448da4). (cr, 1, 1, 1, 1); |
| 130 | |
| 131 | gsk_cairo_set_fill_rulecxx . . $ gsk_cairo_set_fill_rule(61acc32a17a672f1). (cr, fill->fill_rulecxx . . $ _FillData#fill_rule.); |
| 132 | gsk_path_to_cairocxx . . $ gsk_path_to_cairo(e9cfd9d763985906). (fill->pathcxx . . $ _FillData#path., cr); |
| 133 | cairo_fillcxx . . $ cairo_fill(21788b7825b29bf). (cr); |
| 134 | } |
| 135 | |
| 136 | static void |
| 137 | fill_path_printcxx . . $ fill_path_print(a438e19f01d16a58). (gpointercxx . . $ gpointer# data, |
| 138 | GStringcxx . . $ GString# *string) |
| 139 | { |
| 140 | FillDatacxx . . $ FillData# *fill = data; |
| 141 | char *str; |
| 142 | |
| 143 | str = gsk_path_to_stringcxx . . $ gsk_path_to_string(2701426875fded65). (fill->pathcxx . . $ _FillData#path.); |
| 144 | g_string_append_printfcxx . . $ g_string_append_printf(eeccf837eb821d11). (string, "fill %s %.*s%s", |
| 145 | fill->fill_rulecxx . . $ _FillData#fill_rule. == GSK_FILL_RULE_WINDINGcxx . . $ GSK_FILL_RULE_WINDING. ? "★" : "✫", |
| 146 | 20, str, strlencxx . . $ strlen(751346f8406fd082). (str) > 20 ? "…" : ""); |
| 147 | g_freecxx . . $ g_free(5d22bdacc48458e8). (str); |
| 148 | } |
| 149 | |
| 150 | static gsizecxx . . $ gsize# |
| 151 | mod_subpixelcxx . . $ mod_subpixel(7bb717c21f873af9). (float pos, |
| 152 | float scale, |
| 153 | gsizecxx . . $ gsize# subpixel_scale, |
| 154 | float *delta) |
| 155 | { |
| 156 | scale *= subpixel_scale; |
| 157 | pos = fmodcxx . . $ fmod(d8e7e0733fa41c87). (scale * pos, subpixel_scale); |
| 158 | *delta = (ceilcxx . . $ ceil(447c67c6676f75c3). (pos) - pos) / scale; |
| 159 | if (pos > 0.0) |
| 160 | return subpixel_scale - (gsizecxx . . $ gsize#) ceilcxx . . $ ceil(447c67c6676f75c3). (pos); |
| 161 | else |
| 162 | return (gsizecxx . . $ gsize#) - ceilcxx . . $ ceil(447c67c6676f75c3). (pos); |
| 163 | } |
| 164 | |
| 165 | GskGpuImagecxx . . $ GskGpuImage# * |
| 166 | gsk_gpu_cached_fill_lookupcxx . . $ gsk_gpu_cached_fill_lookup(edc3e232ffc45da9). (GskGpuCachecxx . . $ GskGpuCache# *self, |
| 167 | GskGpuFramecxx . . $ GskGpuFrame# *frame, |
| 168 | const graphene_vec2_tcxx . . $ graphene_vec2_t# *scale, |
| 169 | const graphene_rect_tcxx . . $ graphene_rect_t# *bounds, |
| 170 | GskPathcxx . . $ GskPath# *path, |
| 171 | GskFillRulecxx . . $ GskFillRule# fill_rule, |
| 172 | graphene_rect_tcxx . . $ graphene_rect_t# *out_rect) |
| 173 | { |
| 174 | GskGpuCachePrivatecxx . . $ GskGpuCachePrivate# *priv = gsk_gpu_cache_get_privatecxx . . $ gsk_gpu_cache_get_private(15a7619203257844). (self); |
| 175 | float sx = graphene_vec2_get_xcxx . . $ graphene_vec2_get_x(3ea319d7328b016e). (scale); |
| 176 | float sy = graphene_vec2_get_ycxx . . $ graphene_vec2_get_y(3ea319d7328b016e). (scale); |
| 177 | float dx, dy; |
| 178 | GskGpuCachedFillcxx . . $ GskGpuCachedFill# *cache; |
| 179 | gsizecxx . . $ gsize# fx, fy, atlas_x, atlas_y, padding, image_width, image_height; |
| 180 | GskGpuImagecxx . . $ GskGpuImage# *image = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 181 | graphene_rect_tcxx . . $ graphene_rect_t# viewport; |
| 182 | |
| 183 | fx = mod_subpixelcxx . . $ mod_subpixel(7bb717c21f873af9). (bounds->origincxx . . $ _graphene_rect_t#origin..xcxx . . $ _graphene_point_t#x., sx, SUBPIXEL_SCALE_Xcxx . . $ `gsk/gpu/gskgpucachedfill.c:20:9`!, &dx); |
| 184 | fy = mod_subpixelcxx . . $ mod_subpixel(7bb717c21f873af9). (bounds->origincxx . . $ _graphene_rect_t#origin..ycxx . . $ _graphene_point_t#y., sy, SUBPIXEL_SCALE_Ycxx . . $ `gsk/gpu/gskgpucachedfill.c:21:9`!, &dy); |
| 185 | |
| 186 | cache = g_hash_table_lookupcxx . . $ g_hash_table_lookup(8183d62c39a6a245). (priv->fill_cachecxx . . $ _GskGpuCachePrivate#fill_cache., |
| 187 | &(GskGpuCachedFillcxx . . $ GskGpuCachedFill#) { |
| 188 | .path = path, |
| 189 | .fill_rule = fill_rule, |
| 190 | .sx = sx, |
| 191 | .sy = sy, |
| 192 | .fx = fx, |
| 193 | .fy = fy, |
| 194 | }); |
| 195 | if (cache) |
| 196 | { |
| 197 | gsk_gpu_cached_usecxx . . $ gsk_gpu_cached_use(5a53b82634f8e5da). ((GskGpuCachedcxx . . $ GskGpuCached# *) cache); |
| 198 | |
| 199 | graphene_rect_initcxx . . $ graphene_rect_init(41a513f04ded43b4). (out_rect, |
| 200 | cache->image_offsetcxx . . $ _GskGpuCachedFill#image_offset..xcxx . . $ _graphene_point_t#x. - dx, |
| 201 | cache->image_offsetcxx . . $ _GskGpuCachedFill#image_offset..ycxx . . $ _graphene_point_t#y. - dy, |
| 202 | gsk_gpu_image_get_widthcxx . . $ gsk_gpu_image_get_width(4bdeec44aa36e037). (cache->imagecxx . . $ _GskGpuCachedFill#image.) / sx, |
| 203 | gsk_gpu_image_get_heightcxx . . $ gsk_gpu_image_get_height(4bdeec44aa36e037). (cache->imagecxx . . $ _GskGpuCachedFill#image.) / sy); |
| 204 | |
| 205 | return g_object_refcxx . . $ `<external>/1341695927569185362/gobject.h:533:9`! (cache->image); |
| 206 | } |
| 207 | |
| 208 | if (!gsk_path_get_boundscxx . . $ gsk_path_get_bounds(c4eeaabf179b8568). (path, &viewport) || |
| 209 | !gsk_rect_snap_to_gridcxx . . $ gsk_rect_snap_to_grid(8c254ebb11f99f99). (&viewport, |
| 210 | scale, |
| 211 | &GRAPHENE_POINT_INITcxx . . $ `<external>/9324137249738369859/graphene-point.h:50:9`! ((float) fx / (sx * SUBPIXEL_SCALE_Xcxx . . $ `gsk/gpu/gskgpucachedfill.c:20:9`!), |
| 212 | (float) fy / (sy * SUBPIXEL_SCALE_Ycxx . . $ `gsk/gpu/gskgpucachedfill.c:21:9`!)), |
| 213 | &viewport)) |
| 214 | return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 215 | |
| 216 | padding = 1; |
| 217 | /* Should already be integers because of snap_to_grid() above, but round just to be sure */ |
| 218 | image_width = roundcxx . . $ round(447c67c6676f75c3). (sx * viewport.sizecxx . . $ _graphene_rect_t#size..widthcxx . . $ _graphene_size_t#width.); |
| 219 | image_height = roundcxx . . $ round(447c67c6676f75c3). (sy * viewport.sizecxx . . $ _graphene_rect_t#size..heightcxx . . $ _graphene_size_t#height.); |
| 220 | |
| 221 | image = gsk_gpu_cache_add_atlas_imagecxx . . $ gsk_gpu_cache_add_atlas_image(e64916a9eafb68c9). (self, |
| 222 | image_width + 2 * padding, |
| 223 | image_height + 2 * padding, |
| 224 | &atlas_x, |
| 225 | &atlas_y); |
| 226 | |
| 227 | if (image) |
| 228 | { |
| 229 | g_object_refcxx . . $ `<external>/1341695927569185362/gobject.h:533:9`! (image); |
| 230 | cache = gsk_gpu_cached_new_from_current_atlascxx . . $ gsk_gpu_cached_new_from_current_atlas(9c808eb1e438eb24). (self, &GSK_GPU_CACHED_FILL_CLASScxx . . $ GSK_GPU_CACHED_FILL_CLASS.); |
| 231 | cache->pathcxx . . $ _GskGpuCachedFill#path. = gsk_path_refcxx . . $ gsk_path_ref(bad2326ff2cc623a). (path); |
| 232 | cache->fill_rulecxx . . $ _GskGpuCachedFill#fill_rule. = fill_rule; |
| 233 | cache->sxcxx . . $ _GskGpuCachedFill#sx. = sx; |
| 234 | cache->sycxx . . $ _GskGpuCachedFill#sy. = sy; |
| 235 | cache->fxcxx . . $ _GskGpuCachedFill#fx. = fx; |
| 236 | cache->fycxx . . $ _GskGpuCachedFill#fy. = fy; |
| 237 | cache->imagecxx . . $ _GskGpuCachedFill#image. = g_object_refcxx . . $ `<external>/1341695927569185362/gobject.h:533:9`! (image); |
| 238 | graphene_rect_insetcxx . . $ graphene_rect_inset(7d26846cadfcd06e). (&viewport, padding / -sx, padding / -sy); |
| 239 | cache->image_offsetcxx . . $ _GskGpuCachedFill#image_offset. = GRAPHENE_POINT_INITcxx . . $ `<external>/9324137249738369859/graphene-point.h:50:9`! (viewport.origin.x - atlas_x / sx, |
| 240 | viewport.origin.y - atlas_y / sy); |
| 241 | ((GskGpuCachedcxx . . $ GskGpuCached# *) cache)->pixelscxx . . $ _GskGpuCached#pixels. = (image_width + 2 * padding) * (image_height + 2 * padding); |
| 242 | |
| 243 | g_hash_table_insertcxx . . $ g_hash_table_insert(6a7c46015dd5ef26). (priv->fill_cachecxx . . $ _GskGpuCachePrivate#fill_cache., cache, cache); |
| 244 | gsk_gpu_cached_usecxx . . $ gsk_gpu_cached_use(5a53b82634f8e5da). ((GskGpuCachedcxx . . $ GskGpuCached# *) cache); |
| 245 | } |
| 246 | else |
| 247 | { |
| 248 | /* If the unclipped path is too large to fit in the atlas, |
| 249 | * we give up on caching. We still need to return a mask, |
| 250 | * but we'll use the clipped bounds that we were given. |
| 251 | * We'll also assume those are grid aligned. |
| 252 | */ |
| 253 | viewport = *bounds; |
| 254 | padding = 0; |
| 255 | atlas_x = 0; |
| 256 | atlas_y = 0; |
| 257 | image_width = ceilcxx . . $ ceil(447c67c6676f75c3). (sx * viewport.sizecxx . . $ _graphene_rect_t#size..widthcxx . . $ _graphene_size_t#width.); |
| 258 | image_height = ceilcxx . . $ ceil(447c67c6676f75c3). (sy * viewport.sizecxx . . $ _graphene_rect_t#size..heightcxx . . $ _graphene_size_t#height.); |
| 259 | |
| 260 | image = gsk_gpu_device_create_upload_imagecxx . . $ gsk_gpu_device_create_upload_image(a07706f50eb86484). (gsk_gpu_cache_get_devicecxx . . $ gsk_gpu_cache_get_device(9cc2f3a81a3e1cad). (self), |
| 261 | FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!, |
| 262 | GDK_MEMORY_DEFAULTcxx . . $ `gdk/gdkmemorytexture.h:43:9`!, |
| 263 | gsk_gpu_color_state_get_conversioncxx . . $ gsk_gpu_color_state_get_conversion(8c0a5828f7711d06). (GDK_COLOR_STATE_SRGBcxx . . $ `gdk/gdkcolorstateprivate.h:87:9`!), |
| 264 | image_width, |
| 265 | image_height); |
| 266 | if (image == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 267 | return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 268 | } |
| 269 | |
| 270 | gsk_gpu_upload_cairo_into_opcxx . . $ gsk_gpu_upload_cairo_into_op(8b798f2d332821ea). (frame, |
| 271 | image, |
| 272 | &(cairo_rectangle_int_tcxx . . $ cairo_rectangle_int_t#) { |
| 273 | .x = atlas_x, |
| 274 | .y = atlas_y, |
| 275 | .width = image_width + 2 * padding, |
| 276 | .height = image_height + 2 * padding |
| 277 | }, |
| 278 | &viewport, |
| 279 | fill_pathcxx . . $ fill_path(15fd61528eba4e30)., |
| 280 | fill_path_printcxx . . $ fill_path_print(a438e19f01d16a58)., |
| 281 | g_memdup2cxx . . $ g_memdup2(7ca5e6a2fd1baf31). (&(FillDatacxx . . $ FillData#) { |
| 282 | .path = gsk_path_refcxx . . $ gsk_path_ref(bad2326ff2cc623a). (path), |
| 283 | .fill_rule = fill_rule, |
| 284 | }, sizeof (FillDatacxx . . $ FillData#)), |
| 285 | (GDestroyNotifycxx . . $ GDestroyNotify#) fill_data_freecxx . . $ fill_data_free(5d22bdacc48458e8).); |
| 286 | |
| 287 | graphene_rect_initcxx . . $ graphene_rect_init(41a513f04ded43b4). (out_rect, |
| 288 | viewport.origincxx . . $ _graphene_rect_t#origin..xcxx . . $ _graphene_point_t#x. - atlas_x / sx - dx, |
| 289 | viewport.origincxx . . $ _graphene_rect_t#origin..ycxx . . $ _graphene_point_t#y. - atlas_y / sy - dy, |
| 290 | gsk_gpu_image_get_widthcxx . . $ gsk_gpu_image_get_width(4bdeec44aa36e037). (image) / sx, |
| 291 | gsk_gpu_image_get_heightcxx . . $ gsk_gpu_image_get_height(4bdeec44aa36e037). (image) / sy); |
| 292 | |
| 293 | return image; |
| 294 | } |
| 295 | |
| 296 | void |
| 297 | gsk_gpu_cached_fill_init_cachecxx . . $ gsk_gpu_cached_fill_init_cache(1573b146ca703b25). (GskGpuCachecxx . . $ GskGpuCache# *cache) |
| 298 | { |
| 299 | GskGpuCachePrivatecxx . . $ GskGpuCachePrivate# *priv = gsk_gpu_cache_get_privatecxx . . $ gsk_gpu_cache_get_private(15a7619203257844). (cache); |
| 300 | |
| 301 | priv->fill_cachecxx . . $ _GskGpuCachePrivate#fill_cache. = g_hash_table_newcxx . . $ g_hash_table_new(444186de27d60923). (gsk_gpu_cached_fill_hashcxx . . $ gsk_gpu_cached_fill_hash(b11f534102b1ad6)., |
| 302 | gsk_gpu_cached_fill_equalcxx . . $ gsk_gpu_cached_fill_equal(9148c8c3ff42c9d8).); |
| 303 | } |
| 304 | |
| 305 | void |
| 306 | gsk_gpu_cached_fill_finish_cachecxx . . $ gsk_gpu_cached_fill_finish_cache(1573b146ca703b25). (GskGpuCachecxx . . $ GskGpuCache# *cache) |
| 307 | { |
| 308 | GskGpuCachePrivatecxx . . $ GskGpuCachePrivate# *priv = gsk_gpu_cache_get_privatecxx . . $ gsk_gpu_cache_get_private(15a7619203257844). (cache); |
| 309 | |
| 310 | g_hash_table_unrefcxx . . $ g_hash_table_unref(ce4eddf544b9218). (priv->fill_cachecxx . . $ _GskGpuCachePrivate#fill_cache.); |
| 311 | } |