docs: public void updateSessionIfNeeded(Session session) {
      if (viewportChanged) {
        int displayRotation = display.getRotation();
        session.setDisplayGeometry(displayRotation, viewportWidth, viewportHeight);
        viewportChanged = false;
      }
    }