gfx: Paint in parallel in CPU rendering mode

r? @larsbergstrom @mrobinson 
Can this go into a separate PR? It seems unrelated to all of the changes here.