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
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
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
root_group.h
ruler.h
scroll_group.h
stateful_image.h
step_button.h
table.h
text.h
tracking_text.h
types.h
utils.h
visibility.h
widget.h
xfade_curve.h