code: public final void setSize(int pixelWidth, int pixelHeight) {
      viewWidth = scale.invScaledFloor(pixelWidth);
      viewHeight = scale.invScaledFloor(pixelHeight);
      curFbufWidth = defaultFbufWidth = pixelWidth;
      curFbufHeight = defaultFbufHeight = pixelHeight;
      viewConfigChanged();
    }
docs: Sets the frame buffer to the specified width and height (in pixels). The view will potentially
  be smaller than this size if a HiDPI scale factor is in effect.