Add cache for board-outlinepcb+gl/add-cache-for-board-outline
commit0bdb8b7cc88c3eeca7c33475e6327fc341369e2a
authorPeter Clifton <peter@clifton-electronics.co.uk>
Sun, 4 Dec 2016 19:20:04 +0000 (4 19:20 +0000)
committerPeter Clifton <peter@clifton-electronics.co.uk>
Sun, 4 Dec 2016 19:20:04 +0000 (4 19:20 +0000)
tree85d1a3cc1eaa9ec27d7831df0f6e53a216d4d3dc
parent0e58227a37139d12bdc2cf4922f3e2506dc79e98
Add cache for board-outline

This adds a cache of the board outline, to improve rendering speed
when plotting the board with an outline.

The cache is invalidated when the "outline" or "route" layer is
updated. We catch this by bodging the ClearFromPolygon() routine,
which is called for almost all layer geometry changes which might
affect us.

XXX: We really need to add a nicer place to be notified of board
layer changes!
src/global.h
src/hid/gtk/gtkhid-gl.c
src/mymem.c
src/polygon.c