Merge pull request #1566 from collinjackson/dont_antialias_images
Painting images should not anti-alias (improves performance)
This commit is contained in:
commit
cc2a873ac7
@ -456,7 +456,7 @@ void paintImage({
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// TODO(abarth): Implement |repeat|.
|
// TODO(abarth): Implement |repeat|.
|
||||||
Paint paint = new Paint();
|
Paint paint = new Paint()..isAntiAlias = false;
|
||||||
if (colorFilter != null)
|
if (colorFilter != null)
|
||||||
paint.colorFilter = colorFilter;
|
paint.colorFilter = colorFilter;
|
||||||
double dx = (bounds.width - destinationSize.width) * positionX;
|
double dx = (bounds.width - destinationSize.width) * positionX;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user