13
0
livetrax/libs/canvas/canvas
Paul Davis b6d0f8f661 canvas: add a drawing-request-freeze/thaw API
If queue_draw is "frozen", we simply accumulate drawing
requests in a (union) rectangle, and when finally "thawed"
the canvas submits a single redraw request for the entire
accumulated rect.

Although in theory this is all that GTK/GDK does for
draw requests, callgrind reveals significant costs
associated with the actual calltree for GtkWidget::queue_draw_area().

One potential cost is that GDK also maintains a list of
invalidated rectangles in addition to the union, and
for MIDI regions with thousands of notes, this can represent
real overhead. This approach dispenses with the rect list,
since our Canvas drawing model only uses the union rectangle
anyway.
2022-04-05 20:52:09 -06:00
..
arc.h
arrow.h
box.h
canvas.h canvas: add a drawing-request-freeze/thaw API 2022-04-05 20:52:09 -06:00
circle.h
container.h
curve.h
debug.h
fill.h
flag.h
framed_curve.h
fwd.h
grid.h
image.h
interpolated_curve.h
item.h canvas: manually remove changes from 6f91dc0799 and implement same goal in a different way 2022-01-20 09:45:47 -07:00
line_set.h
line.h
lookup_table.h
meter.h
note.h
outline.h
pixbuf.h
poly_item.h
poly_line.h
polygon.h
rectangle.h ArdourCanvas Rectangle: allow subclasses access to _rect 2021-12-07 16:32:49 -06:00
root_group.h
ruler.h ruler: make ::set_metric() API consistent with constructor by using ptr 2021-12-24 15:34:18 -07:00
scroll_group.h
stateful_image.h
step_button.h
table.h
text.h canvas text: generalize ::font_size_for_height() to handle different font families 2021-10-19 10:54:27 -06:00
tracking_text.h
types.h
utils.h
visibility.h
widget.h
xfade_curve.h