GRAPHICS: Cache viewport state.