@@ -0,0 +1,1601 @@
+/*%0A * Copyright (c) Facebook, Inc. and its affiliates.%0A *%0A * This source code is licensed under the MIT license found in the%0A * LICENSE file in the root directory of this source tree.%0A */%0A%0Apackage com.facebook.fresco.vito.draweesupport;%0A%0Aimport androidx.annotation.Nullable;%0Aimport com.facebook.drawee.generic.RoundingParams;%0Aimport com.facebook.fresco.vito.options.BorderOptions;%0Aimport com.facebook.fresco.vito.options.RoundingOptions;%0Aimport com.facebook.infer.annotation.Nullsafe;%0A%0A@Nullsafe(Nullsafe.Mode.LOCAL)%0Apublic class RoundingParamsWrapper %7B%0A%0A  @Nullable%0A  public static RoundingOptions roundingOptionsFromRoundingParams(%0A      @Nullable RoundingParams roundingParams) %7B%0A    if (roundingParams == null) %7B%0A      return null;%0A    %7D%0A    if (roundingParams.getRoundAsCircle()) %7B%0A      return RoundingOptions.asCircle(true);%0A    %7D%0A    if (roundingParams.getCornersRadii() != null) %7B%0A      return RoundingOptions.forCornerRadii(roundingParams.getCornersRadii(), true);%0A    %7D%0A    // TODO: we also have an overlay color mode where you specify a color to be drawn on top. Vito%0A    // does not support this.%0A    return null; // Probably only used for borders%0A  %7D%0A%0A  @Nullable%0A  public static BorderOptions borderOptionsFromRoundingParams(%0A      @Nullable RoundingParams roundingParams) %7B%0A    if (roundingParams == null %7C%7C roundingParams.getBorderWidth() %3C= 0f) %7B%0A      return null;%0A    %7D%0A    return BorderOptions.create(%0A        roundingParams.getBorderColor(),%0A        roundingParams.getBorderWidth(),%0A        roundingParams.getPadding(),%0A        roundingParams.getScaleDownInsideBorders());%0A  %7D%0A%7D%0A

Move RoundingParams vito conversion functions to util class