Skip to content

Commit

Permalink
getRoundingParams returns ownership
Browse files Browse the repository at this point in the history
Differential Revision: D4675020

fbshipit-source-id: a58cf8d7f7f0795c30daa11106957365c2339fa5
  • Loading branch information
sblackshear authored and facebook-github-bot committed Mar 9, 2017
1 parent a21960c commit 533759d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import com.facebook.drawee.R;
import com.facebook.drawee.drawable.AutoRotateDrawable;
import static com.facebook.drawee.drawable.ScalingUtils.ScaleType;
import com.facebook.infer.annotation.ReturnsOwnership;

/**
* Inflater for the {@code GenericDraweeHierarchy}.
Expand Down Expand Up @@ -207,10 +208,11 @@ public static GenericDraweeHierarchyBuilder updateBuilder(
roundBottomRight ? roundedCornerRadius : 0,
roundBottomLeft ? roundedCornerRadius : 0);
}

return builder;
}

@ReturnsOwnership
private static RoundingParams getRoundingParams(GenericDraweeHierarchyBuilder builder) {
if (builder.getRoundingParams() == null) {
builder.setRoundingParams(new RoundingParams());
Expand Down

0 comments on commit 533759d

Please sign in to comment.