Skip to content
  • Benjamin Otte's avatar
    snapshot: Implement gtk_snapshot_clips_rect() · ab60cbd8
    Benjamin Otte authored
    And use this to cull widgets and gadgets that are completely outside the
    clip region.
    
    A potential optimization is to apply this clip region to cairo contexts
    created with gtk_snapshot_append_cairo_node(), but for that we'd need to
    apply the inverse matrix to the clip region, and that causes rounding
    errors.
    
    Plus, I hope that cairo drawing becomes exceedingly rare so it won't be
    used for the whole widget factory like today (which might also explain
    why no culling happens in the widget factory outside the header bar.
    ab60cbd8