Remove use of some deprecated functions on sky.Paint

We now expose idiomatic setters for these properties. Eventually we'll remove
the setter functions.
This commit is contained in:
Adam Barth
2015-09-13 17:24:15 -07:00
parent d9a955e947
commit 945b5bcd64
12 changed files with 35 additions and 33 deletions

View File

@@ -15,9 +15,9 @@ class StarField extends NodeWithSize {
Size _paddedSize = Size.zero;
Paint _paint = new Paint()
..setFilterQuality(sky.FilterQuality.low)
..filterQuality = sky.FilterQuality.low
..isAntiAlias = false
..setTransferMode(sky.TransferMode.plus);
..transferMode = sky.TransferMode.plus;
StarField(this._spriteSheet, this._numStars, [this._autoScroll = false]) : super(Size.zero) {
_image = _spriteSheet.image;

View File

@@ -75,7 +75,9 @@ class TestDrawAtlas extends NodeWithSize {
colors,
TransferMode.src,
null,
new Paint()..setFilterQuality(FilterQuality.low)..isAntiAlias=false
new Paint()
..filterQuality = FilterQuality.low
..isAntiAlias = false
);
}
}

View File

@@ -209,7 +209,7 @@ class TestPerformanceAtlas extends PerformanceTest {
double rotation = 0.0;
List<Rect> rects = [];
Paint cachedPaint = new Paint()
..setFilterQuality(sky.FilterQuality.low)
..filterQuality = sky.FilterQuality.low
..isAntiAlias = false;
TestPerformanceAtlas() {
@@ -262,7 +262,7 @@ class TestPerformanceAtlas2 extends PerformanceTest {
double rotation = 0.0;
List<Rect> rects = [];
Paint cachedPaint = new Paint()
..setFilterQuality(sky.FilterQuality.low)
..filterQuality = sky.FilterQuality.low
..isAntiAlias = false;
TestPerformanceAtlas2() {