Implement CPU rendering. Replace texture sharing with native OS surface sharing.
Optimize reflow by changing enums to traits and inlining more