If the context isn't going to be used anymore, you don't need to restore it.  And if you never need to restore it, then you don't even need to use save in rotateContext().  The asymmetry of calling save in one function and restore in another seems like something to avoid if possible.