code: public void fillBounds(RectF bounds) {
      Rectangle2D rect = mPath.getBounds2D();
      bounds.left = (float) rect.getMinX();
      bounds.right = (float) rect.getMaxX();
      bounds.top = (float) rect.getMinY();
      bounds.bottom = (float) rect.getMaxY();
    }
docs: Fills the given {@link RectF} with the path bounds.
  
  @param bounds the RectF to be filled.