class TextLayoutBuilder {

  public TextLayoutBuilder setTextSize(int size) {
    if (mParams.paint.getTextSize() != size) {
      mParams.createNewPaintIfNeeded();
      mParams.paint.setTextSize(size);
      mSavedLayout = null;
    }
    return this;
  }

}