[gtk/offscreen-fixes: 1/5] ngl: Add sonme comments




commit 53e75936cb112e3eb43b279c269f728d0e9b68f1
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Mar 31 14:32:47 2021 -0400

    ngl: Add sonme comments
    
    The GskNglRenderOffscreen struct is a mix of in and
    out arguments. Better annotate that a little bit.

 gsk/ngl/gsknglrenderjob.c | 11 +++++++++++
 1 file changed, 11 insertions(+)
---
diff --git a/gsk/ngl/gsknglrenderjob.c b/gsk/ngl/gsknglrenderjob.c
index 5dfd78b5c8..93b06c38f6 100644
--- a/gsk/ngl/gsknglrenderjob.c
+++ b/gsk/ngl/gsknglrenderjob.c
@@ -163,18 +163,29 @@ struct _GskNglRenderJob
 
 typedef struct _GskNglRenderOffscreen
 {
+  /* The bounds to render */
   const graphene_rect_t *bounds;
+
+  /* Return location for texture coordinates */
   struct {
     float x;
     float y;
     float x2;
     float y2;
   } area;
+
+  /* Return location for texture ID */
   guint texture_id;
+
+  /* Whether to force creating a new texture, even if the
+   * input already is a texture
+   */
   guint force_offscreen : 1;
   guint reset_clip : 1;
   guint do_not_cache : 1;
   guint linear_filter : 1;
+
+  /* Return location for whether we created a texture */
   guint was_offscreen : 1;
 } GskNglRenderOffscreen;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]