2023-08-12 20:10:16 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "gskgpuopprivate.h"
|
|
|
|
|
|
|
|
#include "gsktypes.h"
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2023-12-26 02:32:50 +00:00
|
|
|
typedef void (* GskGpuCairoFunc) (gpointer user_data,
|
|
|
|
cairo_t *cr);
|
|
|
|
|
2023-10-12 20:59:09 +00:00
|
|
|
GskGpuImage * gsk_gpu_upload_texture_op_try (GskGpuFrame *frame,
|
2023-11-01 05:43:15 +00:00
|
|
|
gboolean with_mipmap,
|
2023-08-12 20:10:16 +00:00
|
|
|
GdkTexture *texture);
|
|
|
|
|
|
|
|
GskGpuImage * gsk_gpu_upload_cairo_op (GskGpuFrame *frame,
|
|
|
|
const graphene_vec2_t *scale,
|
2023-12-26 02:32:50 +00:00
|
|
|
const graphene_rect_t *viewport,
|
|
|
|
GskGpuCairoFunc func,
|
|
|
|
gpointer user_data,
|
|
|
|
GDestroyNotify user_destroy);
|
2023-08-12 20:10:16 +00:00
|
|
|
|
|
|
|
void gsk_gpu_upload_glyph_op (GskGpuFrame *frame,
|
|
|
|
GskGpuImage *image,
|
|
|
|
PangoFont *font,
|
2023-09-06 00:11:39 +00:00
|
|
|
PangoGlyph glyph,
|
|
|
|
const cairo_rectangle_int_t *area,
|
|
|
|
const graphene_point_t *origin);
|
2023-08-12 20:10:16 +00:00
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|