Skip to content

Commit

Permalink
Merge pull request #116 from k-ibr/hardware_accelerated
Browse files Browse the repository at this point in the history
Performance fix for Android by enabling hardware acceleration
  • Loading branch information
FonDorn authored Apr 22, 2021
2 parents fcf002a + 1dfe858 commit bc019c7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class RNCMaskedView extends ReactViewGroup {

public RNCMaskedView(Context context) {
super(context);
setLayerType(LAYER_TYPE_SOFTWARE, null);
setLayerType(LAYER_TYPE_HARDWARE, null);

mPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
mPorterDuffXferMode = new PorterDuffXfermode(PorterDuff.Mode.DST_IN);
Expand Down

0 comments on commit bc019c7

Please sign in to comment.