revert D2862911: this broke ReactNative

Reviewed By: balazsbalazs

Differential Revision: D2879926

fb-gh-sync-id: 9f833c209128eaa00b111387ee57dbbc6b74fcb7
This commit is contained in:
Konstantin Raev 2016-01-29 12:20:23 -08:00 committed by facebook-github-bot-5
parent 68f71dab4c
commit 063e8b9ae5
1 changed files with 10 additions and 9 deletions

View File

@ -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