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:
@ -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 */
|
||||||
|
|
||||||
|
@ -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__ */
|
||||||
|
@ -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,
|
||||||
|
Reference in New Issue
Block a user