[gegl/gsoc2009-gpu: 9/15] Fix some compiler warnings
- From: Martin Nordholts <martinn src gnome org>
- To: svn-commits-list gnome org
- Subject: [gegl/gsoc2009-gpu: 9/15] Fix some compiler warnings
- Date: Wed, 24 Jun 2009 05:38:44 +0000 (UTC)
commit 5f98d6f84290eb535d1514f582dae1913b6bb057
Author: Jerson Michael Perpetua <jersonperpetua gmail com>
Date: Wed Jun 17 03:02:12 2009 +0800
Fix some compiler warnings
gegl/buffer/gegl-buffer-access.c | 2 +-
gegl/gpu/gegl-gpu-texture.c | 24 +++++++++++-----------
gegl/gpu/gegl-gpu-texture.h | 40 +++++++++++++++++++-------------------
3 files changed, 33 insertions(+), 33 deletions(-)
---
diff --git a/gegl/buffer/gegl-buffer-access.c b/gegl/buffer/gegl-buffer-access.c
index 6d31195..b14a49f 100644
--- a/gegl/buffer/gegl-buffer-access.c
+++ b/gegl/buffer/gegl-buffer-access.c
@@ -964,7 +964,7 @@ gegl_buffer_gpu_set (GeglBuffer *buffer,
}
else
{
- gegl_buffer_gpu_iterate (buffer, rect, src, TRUE, 0);
+ gegl_buffer_gpu_iterate (buffer, rect, (GeglGpuTexture *) src, TRUE, 0);
}
if (gegl_buffer_is_shared (buffer))
diff --git a/gegl/gpu/gegl-gpu-texture.c b/gegl/gpu/gegl-gpu-texture.c
index 7302ef0..ff4473a 100644
--- a/gegl/gpu/gegl-gpu-texture.c
+++ b/gegl/gpu/gegl-gpu-texture.c
@@ -74,10 +74,10 @@ gegl_gpu_texture_free (GeglGpuTexture *texture)
}
void
-gegl_gpu_texture_get (GeglGpuTexture *texture,
- const GeglRectangle *roi,
- gpointer dest,
- const Babl *format)
+gegl_gpu_texture_get (const GeglGpuTexture *texture,
+ const GeglRectangle *roi,
+ gpointer dest,
+ const Babl *format)
{
gpointer buf;
gint pixel_count = (roi != NULL)
@@ -85,7 +85,7 @@ gegl_gpu_texture_get (GeglGpuTexture *texture,
: gegl_gpu_texture_get_pixel_count (texture);
if (texture->handle == 0)
- allocate_texture_data (texture);
+ allocate_texture_data ((GeglGpuTexture *) texture);
if (format != NULL && format != texture->format)
{
@@ -205,14 +205,14 @@ gegl_gpu_texture_clear (GeglGpuTexture *texture,
}
void
-gegl_gpu_texture_copy (GeglGpuTexture *src,
- const GeglRectangle *src_rect,
- GeglGpuTexture *dest,
- gint dest_x,
- gint dest_y)
+gegl_gpu_texture_copy (const GeglGpuTexture *src,
+ const GeglRectangle *src_rect,
+ GeglGpuTexture *dest,
+ gint dest_x,
+ gint dest_y)
{
if (src->handle == 0)
- allocate_texture_data (src);
+ allocate_texture_data ((GeglGpuTexture *) src);
if (dest->handle == 0)
allocate_texture_data (dest);
@@ -238,7 +238,7 @@ gegl_gpu_texture_copy (GeglGpuTexture *src,
}
GeglGpuTexture *
-gegl_gpu_texture_dup (GeglGpuTexture *texture)
+gegl_gpu_texture_dup (const GeglGpuTexture *texture)
{
GeglGpuTexture *result = gegl_gpu_texture_new (texture->width,
texture->height,
diff --git a/gegl/gpu/gegl-gpu-texture.h b/gegl/gpu/gegl-gpu-texture.h
index 4833a20..ab2b2af 100644
--- a/gegl/gpu/gegl-gpu-texture.h
+++ b/gegl/gpu/gegl-gpu-texture.h
@@ -28,26 +28,26 @@
G_BEGIN_DECLS
GType gegl_gpu_texture_get_type (void) G_GNUC_CONST;
-GeglGpuTexture *gegl_gpu_texture_new (gint width,
- gint height,
- const Babl *format);
-void gegl_gpu_texture_free (GeglGpuTexture *texture);
-void gegl_gpu_texture_get (GeglGpuTexture *texture,
- const GeglRectangle *roi,
- gpointer dest,
- const Babl *format);
-void gegl_gpu_texture_set (GeglGpuTexture *texture,
- const GeglRectangle *roi,
- gpointer src,
- const Babl *format);
-void gegl_gpu_texture_clear (GeglGpuTexture *texture,
- const GeglRectangle *roi);
-void gegl_gpu_texture_copy (GeglGpuTexture *src,
- const GeglRectangle *src_roi,
- GeglGpuTexture *dest,
- gint dest_x,
- gint dest_y);
-GeglGpuTexture *gegl_gpu_texture_dup (GeglGpuTexture *texture);
+GeglGpuTexture *gegl_gpu_texture_new (gint width,
+ gint height,
+ const Babl *format);
+void gegl_gpu_texture_free (GeglGpuTexture *texture);
+void gegl_gpu_texture_get (const GeglGpuTexture *texture,
+ const GeglRectangle *roi,
+ gpointer dest,
+ const Babl *format);
+void gegl_gpu_texture_set (GeglGpuTexture *texture,
+ const GeglRectangle *roi,
+ gpointer src,
+ const Babl *format);
+void gegl_gpu_texture_clear (GeglGpuTexture *texture,
+ const GeglRectangle *roi);
+void gegl_gpu_texture_copy (const GeglGpuTexture *src,
+ const GeglRectangle *src_roi,
+ GeglGpuTexture *dest,
+ gint dest_x,
+ gint dest_y);
+GeglGpuTexture *gegl_gpu_texture_dup (const GeglGpuTexture *texture);
#define gegl_gpu_texture_get_width(texture) (texture->width)
#define gegl_gpu_texture_get_height(texture) (texture->height)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]