revert D2862911: this broke ReactNative
Reviewed By: balazsbalazs Differential Revision: D2879926 fb-gh-sync-id: 9f833c209128eaa00b111387ee57dbbc6b74fcb7
This commit is contained in:
parent
68f71dab4c
commit
063e8b9ae5
|
@ -74,15 +74,16 @@ public class ReactImageView extends GenericDraweeView {
|
|||
private class RoundedCornerPostprocessor extends BasePostprocessor {
|
||||
|
||||
float getRadius(Bitmap source) {
|
||||
mScaleType.getTransform(
|
||||
sMatrix,
|
||||
new Rect(0, 0, source.getWidth(), source.getHeight()),
|
||||
source.getWidth(),
|
||||
source.getHeight(),
|
||||
0.0f,
|
||||
0.0f);
|
||||
sMatrix.invert(sInverse);
|
||||
return sInverse.mapRadius(mBorderRadius);
|
||||
ScalingUtils.getTransform(
|
||||
sMatrix,
|
||||
new Rect(0, 0, source.getWidth(), source.getHeight()),
|
||||
source.getWidth(),
|
||||
source.getHeight(),
|
||||
0.0f,
|
||||
0.0f,
|
||||
mScaleType);
|
||||
sMatrix.invert(sInverse);
|
||||
return sInverse.mapRadius(mBorderRadius);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue