setRotation needs to consider the orientation of cameras. Change-Id: I3ef23dc088647dacdddbb83e3f303c16b9251185