[gegl] Use the default backend for graph temporary buffers
- From: Daniel Sabo <daniels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] Use the default backend for graph temporary buffers
- Date: Wed, 19 Mar 2014 02:02:11 +0000 (UTC)
commit d89018f2f0a34b58563aa5dde83ed34825a576b3
Author: Daniel Sabo <DanielSabo gmail com>
Date: Mon Mar 17 01:39:12 2014 -0700
Use the default backend for graph temporary buffers
There is no longer any performance benefit to avoiding the swap backend.
gegl/operation/gegl-operation-context.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gegl/operation/gegl-operation-context.c b/gegl/operation/gegl-operation-context.c
index b15d762..84258f4 100644
--- a/gegl/operation/gegl-operation-context.c
+++ b/gegl/operation/gegl-operation-context.c
@@ -317,7 +317,7 @@ gegl_operation_context_get_target (GeglOperationContext *context,
if (result->width == 0 ||
result->height == 0)
{
- output = gegl_buffer_new_ram (GEGL_RECTANGLE (0, 0, 0, 0), format);
+ output = gegl_buffer_new (GEGL_RECTANGLE (0, 0, 0, 0), format);
}
else if (node->dont_cache == FALSE &&
! GEGL_OPERATION_CLASS (G_OBJECT_GET_CLASS (operation))->no_cache)
@@ -335,12 +335,12 @@ gegl_operation_context_get_target (GeglOperationContext *context,
}
else
{
- output = gegl_buffer_new_ram (result, format);
+ output = gegl_buffer_new (result, format);
}
}
else
{
- output = gegl_buffer_new_ram (result, format);
+ output = gegl_buffer_new (result, format);
}
gegl_operation_context_take_object (context, padname, G_OBJECT (output));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]