compositor: Add dirty bits to paint nodes
We're pushing more and more mutable state into paint nodes, but this state has a non-zero cost to rebuild every render.
Let's take care to track when we need to rebuild the state.
Signed-off-by: Derek Foreman derek.foreman@collabora.com