• Debarshi Ray's avatar
    image-view: Reduce memory fragmentation · 491a1822
    Debarshi Ray authored
    Instead of allocating and de-allocating memory for the throwaway Cairo
    surface on every invocation of the GtkWidget::draw virtual method,
    allocate a memory area big enough to draw the entire widget and keep
    re-using it.
    491a1822
photos-image-view.c 35.8 KB