[gegl] buffer: do not ask for zeroed buf for samplers, it takes more time
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] buffer: do not ask for zeroed buf for samplers, it takes more time
- Date: Mon, 29 Jan 2018 16:32:52 +0000 (UTC)
commit 5b4565041ac8b70e9a59524440161e71758ef7bc
Author: Øyvind Kolås <pippin gimp org>
Date: Mon Jan 29 17:31:53 2018 +0100
buffer: do not ask for zeroed buf for samplers, it takes more time
gegl/buffer/gegl-sampler.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gegl/buffer/gegl-sampler.c b/gegl/buffer/gegl-sampler.c
index 9569f3a..15d8e26 100644
--- a/gegl/buffer/gegl-sampler.c
+++ b/gegl/buffer/gegl-sampler.c
@@ -137,8 +137,8 @@ gegl_sampler_init (GeglSampler *sampler)
} while ( ++i<GEGL_SAMPLER_MIPMAP_LEVELS );
sampler->level[0].sampler_buffer =
- g_malloc0 (GEGL_SAMPLER_MAXIMUM_WIDTH *
- GEGL_SAMPLER_MAXIMUM_HEIGHT * GEGL_SAMPLER_BPP);
+ g_malloc (GEGL_SAMPLER_MAXIMUM_WIDTH *
+ GEGL_SAMPLER_MAXIMUM_HEIGHT * GEGL_SAMPLER_BPP);
}
static void
@@ -291,7 +291,7 @@ gegl_sampler_get_from_mipmap (GeglSampler *sampler,
level_no);
if (!level->sampler_buffer)
level->sampler_buffer =
- g_malloc0 (GEGL_SAMPLER_ROWSTRIDE * GEGL_SAMPLER_MAXIMUM_HEIGHT);
+ g_malloc (GEGL_SAMPLER_ROWSTRIDE * GEGL_SAMPLER_MAXIMUM_HEIGHT);
gegl_buffer_get (sampler->buffer,
&level->sampler_rectangle,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]