app: completely switch to cairo-drawing the selection

and remove all old selection drawing code. Thanks to Benjamin Otte for
pointing out the right optimization.

Also fixes bug #479875 - performance problem drawing a complex selection.
This commit is contained in:
Michael Natterer
2010-08-26 20:52:52 +02:00
parent d745ab3871
commit be2bd189cd
5 changed files with 53 additions and 460 deletions

View File

@ -57,10 +57,13 @@ void gimp_display_shell_draw_selection_out (GimpDisplayShell *shell,
cairo_t *cr,
GdkSegment *segs,
gint n_segs);
void gimp_display_shell_draw_selection_in (GimpDisplayShell *shell,
void gimp_display_shell_draw_selection_segments (GimpDisplayShell *shell,
cairo_t *cr,
GdkSegment *segs,
gint n_segs,
gint n_segs);
void gimp_display_shell_draw_selection_in_mask (GimpDisplayShell *shell,
cairo_t *cr,
cairo_pattern_t *mask,
gint index);
void gimp_display_shell_draw_vector (GimpDisplayShell *shell,
GimpVectors *vectors);