[gtk/wip/chergert/glproto: 185/526] stub out offscreen draw
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/glproto: 185/526] stub out offscreen draw
- Date: Tue, 16 Feb 2021 01:14:28 +0000 (UTC)
commit 2d31edcf8dde81e7a4bec4170c0719da5e3184eb
Author: Christian Hergert <chergert redhat com>
Date: Sat Jan 2 17:22:31 2021 -0800
stub out offscreen draw
gsk/next/gskglrenderjob.c | 33 +++++++++++++++++++++++++++++++--
1 file changed, 31 insertions(+), 2 deletions(-)
---
diff --git a/gsk/next/gskglrenderjob.c b/gsk/next/gskglrenderjob.c
index e13109d019..6ab567e4db 100644
--- a/gsk/next/gskglrenderjob.c
+++ b/gsk/next/gskglrenderjob.c
@@ -94,8 +94,25 @@ typedef struct _GskGLRenderModelview
graphene_matrix_t matrix;
} GskGLRenderModelview;
-static void gsk_gl_render_job_visit_node (GskGLRenderJob *job,
- GskRenderNode *node);
+typedef struct _GskGLRenderOffscreen
+{
+ const graphene_rect_t *bounds;
+ guint texture_id;
+ float x;
+ float y;
+ float x2;
+ float y2;
+ guint force_offscreen : 1;
+ guint reset_clip : 1;
+ guint do_not_cache : 1;
+ guint linear_filter : 1;
+} GskGLRenderOffscreen;
+
+static void gsk_gl_render_job_visit_node (GskGLRenderJob *job,
+ GskRenderNode *node);
+static gboolean gsk_gl_render_job_render_offscreen (GskGLRenderJob *job,
+ GskRenderNode *node,
+ GskGLRenderOffscreen *offscreen);
static inline gboolean G_GNUC_PURE
node_is_invisible (const GskRenderNode *node)
@@ -1478,6 +1495,18 @@ gsk_gl_render_job_visit_node (GskGLRenderJob *job,
}
}
+static gboolean
+gsk_gl_render_job_render_offscreen (GskGLRenderJob *job,
+ GskRenderNode *node,
+ GskGLRenderOffscreen *offscreen)
+{
+ g_assert (job != NULL);
+ g_assert (node != NULL);
+ g_assert (offscreen != NULL);
+
+ return FALSE;
+}
+
void
gsk_gl_render_job_render (GskGLRenderJob *job,
GskRenderNode *root)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]