[gimp] app: remove gimp_display_shell_profile_convert_buffer()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: remove gimp_display_shell_profile_convert_buffer()
- Date: Sun, 29 May 2016 23:27:50 +0000 (UTC)
commit e33b2e77a78892a0845b1598619efdc2b996eb73
Author: Michael Natterer <mitch gimp org>
Date: Mon May 30 01:26:50 2016 +0200
app: remove gimp_display_shell_profile_convert_buffer()
It's exactly the same as calling gimp_color_transform_process_buffer()
directly.
app/display/gimpdisplayshell-profile.c | 17 +--------------
app/display/gimpdisplayshell-profile.h | 6 -----
app/display/gimpdisplayshell-render.c | 36 ++++++++++++++++----------------
3 files changed, 19 insertions(+), 40 deletions(-)
---
diff --git a/app/display/gimpdisplayshell-profile.c b/app/display/gimpdisplayshell-profile.c
index 8058fb1..03b4e5d 100644
--- a/app/display/gimpdisplayshell-profile.c
+++ b/app/display/gimpdisplayshell-profile.c
@@ -157,9 +157,7 @@ gimp_display_shell_profile_update (GimpDisplayShell *shell)
gboolean
gimp_display_shell_profile_can_convert_to_u8 (GimpDisplayShell *shell)
{
- GimpImage *image;
-
- image = gimp_display_get_image (shell->display);
+ GimpImage *image = gimp_display_get_image (shell->display);
if (image)
{
@@ -183,19 +181,6 @@ gimp_display_shell_profile_can_convert_to_u8 (GimpDisplayShell *shell)
return FALSE;
}
-void
-gimp_display_shell_profile_convert_buffer (GimpDisplayShell *shell,
- GeglBuffer *src_buffer,
- GeglRectangle *src_area,
- GeglBuffer *dest_buffer,
- GeglRectangle *dest_area)
-{
- if (shell->profile_transform)
- gimp_color_transform_process_buffer (shell->profile_transform,
- src_buffer, src_area,
- dest_buffer, dest_area);
-}
-
/* private functions */
diff --git a/app/display/gimpdisplayshell-profile.h b/app/display/gimpdisplayshell-profile.h
index 8730b92..0fd0816 100644
--- a/app/display/gimpdisplayshell-profile.h
+++ b/app/display/gimpdisplayshell-profile.h
@@ -26,11 +26,5 @@ void gimp_display_shell_profile_update (GimpDisplayShell *shell);
gboolean gimp_display_shell_profile_can_convert_to_u8 (GimpDisplayShell *shell);
-void gimp_display_shell_profile_convert_buffer (GimpDisplayShell *shell,
- GeglBuffer *src_buffer,
- GeglRectangle *src_area,
- GeglBuffer *dest_buffer,
- GeglRectangle *dest_area);
-
#endif /* __GIMP_DISPLAY_SHELL_PROFILE_H__ */
diff --git a/app/display/gimpdisplayshell-render.c b/app/display/gimpdisplayshell-render.c
index 65f432a..f59e0e5 100644
--- a/app/display/gimpdisplayshell-render.c
+++ b/app/display/gimpdisplayshell-render.c
@@ -220,30 +220,30 @@ gimp_display_shell_render (GimpDisplayShell *shell,
/* if there are filters, convert the pixels from the
* profile_buffer to the filter_buffer
*/
- gimp_display_shell_profile_convert_buffer (shell,
- shell->profile_buffer,
- GEGL_RECTANGLE (0, 0,
- scaled_width,
- scaled_height),
- shell->filter_buffer,
- GEGL_RECTANGLE (0, 0,
- scaled_width,
- scaled_height));
+ gimp_color_transform_process_buffer (shell->profile_transform,
+ shell->profile_buffer,
+ GEGL_RECTANGLE (0, 0,
+ scaled_width,
+ scaled_height),
+ shell->filter_buffer,
+ GEGL_RECTANGLE (0, 0,
+ scaled_width,
+ scaled_height));
}
else
{
/* otherwise, convert the profile_buffer directly into
* the cairo_buffer
*/
- gimp_display_shell_profile_convert_buffer (shell,
- shell->profile_buffer,
- GEGL_RECTANGLE (0, 0,
- scaled_width,
- scaled_height),
- cairo_buffer,
- GEGL_RECTANGLE (0, 0,
- scaled_width,
- scaled_height));
+ gimp_color_transform_process_buffer (shell->profile_transform,
+ shell->profile_buffer,
+ GEGL_RECTANGLE (0, 0,
+ scaled_width,
+ scaled_height),
+ cairo_buffer,
+ GEGL_RECTANGLE (0, 0,
+ scaled_width,
+ scaled_height));
}
}
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]