[gegl] gegl:path: Use only public API
- From: Daniel Sabo <daniels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] gegl:path: Use only public API
- Date: Fri, 29 Nov 2013 16:42:08 +0000 (UTC)
commit 49a8e50666e7a55611add7e653875b0a2695d2e4
Author: Daniel Sabo <DanielSabo gmail com>
Date: Thu Nov 28 11:02:10 2013 -0800
gegl:path: Use only public API
operations/external/path.c | 12 ++----------
1 files changed, 2 insertions(+), 10 deletions(-)
---
diff --git a/operations/external/path.c b/operations/external/path.c
index 12be0a7..2b3ac86 100644
--- a/operations/external/path.c
+++ b/operations/external/path.c
@@ -62,7 +62,6 @@ static void path_changed (GeglPath *path,
gpointer userdata);
#include "gegl-chant.h"
-#include "gegl-buffer-private.h"
#include <cairo.h>
#include <math.h>
@@ -126,10 +125,6 @@ gegl_path_stroke (GeglBuffer *buffer,
{
return;
}
- if (gegl_buffer_is_shared (buffer))
- while (!gegl_buffer_try_lock (buffer));
-
- /*gegl_buffer_clear (buffer, &extent);*/
while (iter)
{
@@ -204,9 +199,6 @@ gegl_path_stroke (GeglBuffer *buffer,
}
iter=iter->next;
}
-
- if (gegl_buffer_is_shared (buffer))
- gegl_buffer_unlock (buffer);
}
static void
@@ -256,7 +248,7 @@ gegl_path_stamp (GeglBuffer *buffer,
}
g_assert (s.buf);
- gegl_buffer_get_unlocked (buffer, 1.0, &roi, s.format, s.buf, 0, GEGL_ABYSS_NONE);
+ gegl_buffer_get (buffer, &roi, 1.0, s.format, s.buf, 0, GEGL_ABYSS_NONE);
{
gint u, v;
@@ -294,7 +286,7 @@ gegl_path_stamp (GeglBuffer *buffer,
}
}
}
- gegl_buffer_set_unlocked (buffer, &roi, s.format, s.buf, 0);
+ gegl_buffer_set (buffer, &roi, 0, s.format, s.buf, 0);
g_free (s.buf);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]