app: remove gimp_display_shell_profile_convert_buffer()

It's exactly the same as calling gimp_color_transform_process_buffer()
directly.
This commit is contained in:
Michael Natterer
2016-05-30 01:26:50 +02:00
parent 710ba9bef3
commit e33b2e77a7
3 changed files with 19 additions and 40 deletions

View File

@ -157,9 +157,7 @@ gimp_display_shell_profile_update (GimpDisplayShell *shell)
gboolean gboolean
gimp_display_shell_profile_can_convert_to_u8 (GimpDisplayShell *shell) gimp_display_shell_profile_can_convert_to_u8 (GimpDisplayShell *shell)
{ {
GimpImage *image; GimpImage *image = gimp_display_get_image (shell->display);
image = gimp_display_get_image (shell->display);
if (image) if (image)
{ {
@ -183,19 +181,6 @@ gimp_display_shell_profile_can_convert_to_u8 (GimpDisplayShell *shell)
return FALSE; 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 */ /* private functions */

View File

@ -26,11 +26,5 @@ void gimp_display_shell_profile_update (GimpDisplayShell *shell);
gboolean gimp_display_shell_profile_can_convert_to_u8 (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__ */ #endif /* __GIMP_DISPLAY_SHELL_PROFILE_H__ */

View File

@ -220,7 +220,7 @@ gimp_display_shell_render (GimpDisplayShell *shell,
/* if there are filters, convert the pixels from the /* if there are filters, convert the pixels from the
* profile_buffer to the filter_buffer * profile_buffer to the filter_buffer
*/ */
gimp_display_shell_profile_convert_buffer (shell, gimp_color_transform_process_buffer (shell->profile_transform,
shell->profile_buffer, shell->profile_buffer,
GEGL_RECTANGLE (0, 0, GEGL_RECTANGLE (0, 0,
scaled_width, scaled_width,
@ -235,7 +235,7 @@ gimp_display_shell_render (GimpDisplayShell *shell,
/* otherwise, convert the profile_buffer directly into /* otherwise, convert the profile_buffer directly into
* the cairo_buffer * the cairo_buffer
*/ */
gimp_display_shell_profile_convert_buffer (shell, gimp_color_transform_process_buffer (shell->profile_transform,
shell->profile_buffer, shell->profile_buffer,
GEGL_RECTANGLE (0, 0, GEGL_RECTANGLE (0, 0,
scaled_width, scaled_width,