[librsvg/librsvg-2.42: 1/8] Rename num_elements_rendered_through_use to num_elements_acquired



commit 948e87f156a84e3b44f149d2738a588a50e2c500
Author: Federico Mena Quintero <federico gnome org>
Date:   Tue Feb 25 10:38:02 2020 -0600

    Rename num_elements_rendered_through_use to num_elements_acquired

 librsvg/rsvg-base.c               | 6 +++---
 librsvg/rsvg-private.h            | 2 +-
 rsvg_internals/src/drawing_ctx.rs | 6 +++---
 rsvg_internals/src/structure.rs   | 2 +-
 4 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/librsvg/rsvg-base.c b/librsvg/rsvg-base.c
index dbad819b..6f2fec55 100644
--- a/librsvg/rsvg-base.c
+++ b/librsvg/rsvg-base.c
@@ -1741,9 +1741,9 @@ rsvg_drawing_ctx_release_node (RsvgDrawingCtx * ctx, RsvgNode *node)
 }
 
 void
-rsvg_drawing_ctx_increase_num_elements_rendered_through_use (RsvgDrawingCtx *draw_ctx)
+rsvg_drawing_ctx_increase_num_elements_acquired (RsvgDrawingCtx *draw_ctx)
 {
-    draw_ctx->num_elements_rendered_through_use++;
+    draw_ctx->num_elements_acquired++;
 }
 
 void
@@ -1762,7 +1762,7 @@ rsvg_drawing_ctx_add_node_and_ancestors_to_stack (RsvgDrawingCtx *draw_ctx, Rsvg
 static gboolean
 limits_exceeded (RsvgDrawingCtx *draw_ctx)
 {
-    return draw_ctx->num_elements_rendered_through_use > 500000;
+    return draw_ctx->num_elements_acquired > 500000;
 }
 
 gboolean
diff --git a/librsvg/rsvg-private.h b/librsvg/rsvg-private.h
index aeec8d56..340d1c8a 100644
--- a/librsvg/rsvg-private.h
+++ b/librsvg/rsvg-private.h
@@ -200,7 +200,7 @@ struct RsvgDrawingCtx {
     RsvgState *state;
     GError **error;
     RsvgDefs *defs;
-    gsize num_elements_rendered_through_use;
+    gsize num_elements_acquired;
     PangoContext *pango_context;
     double dpi_x, dpi_y;
     RsvgViewBox vb;
diff --git a/rsvg_internals/src/drawing_ctx.rs b/rsvg_internals/src/drawing_ctx.rs
index 79f0c9f6..d74547c6 100644
--- a/rsvg_internals/src/drawing_ctx.rs
+++ b/rsvg_internals/src/drawing_ctx.rs
@@ -45,7 +45,7 @@ extern "C" {
 
     fn rsvg_drawing_ctx_release_node(draw_ctx: *const RsvgDrawingCtx, node: *mut RsvgNode);
 
-    fn rsvg_drawing_ctx_increase_num_elements_rendered_through_use(draw_ctx: *const RsvgDrawingCtx);
+    fn rsvg_drawing_ctx_increase_num_elements_acquired(draw_ctx: *const RsvgDrawingCtx);
 
     fn rsvg_drawing_ctx_get_current_state_affine(draw_ctx: *const RsvgDrawingCtx) -> cairo::Matrix;
 
@@ -290,9 +290,9 @@ pub fn state_pop(draw_ctx: *const RsvgDrawingCtx) {
     }
 }
 
-pub fn increase_num_elements_rendered_through_use(draw_ctx: *const RsvgDrawingCtx) {
+pub fn increase_num_elements_acquired(draw_ctx: *const RsvgDrawingCtx) {
     unsafe {
-        rsvg_drawing_ctx_increase_num_elements_rendered_through_use(draw_ctx);
+        rsvg_drawing_ctx_increase_num_elements_acquired(draw_ctx);
     }
 }
 
diff --git a/rsvg_internals/src/structure.rs b/rsvg_internals/src/structure.rs
index 71c9ff09..a993fc35 100644
--- a/rsvg_internals/src/structure.rs
+++ b/rsvg_internals/src/structure.rs
@@ -291,7 +291,7 @@ impl NodeTrait for NodeUse {
             return;
         }
 
-        drawing_ctx::increase_num_elements_rendered_through_use(draw_ctx);
+        drawing_ctx::increase_num_elements_acquired(draw_ctx);
 
         let nx = self.x.get().normalize(draw_ctx);
         let ny = self.y.get().normalize(draw_ctx);


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