mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-06 22:37:14 +08:00
revert D2862911: this broke ReactNative
Reviewed By: balazsbalazs Differential Revision: D2879926 fb-gh-sync-id: 9f833c209128eaa00b111387ee57dbbc6b74fcb7
This commit is contained in:
committed by
facebook-github-bot-5
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
|
||||
|
||||
Reference in New Issue
Block a user