Commit a523d7f3 authored by Matt Perry's avatar Matt Perry

Fix up constructor naming style for MaskFilter and ColorFilter.

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1179913002.
parent 6ed8fb86
...@@ -55,7 +55,7 @@ class Sprite extends NodeWithSize { ...@@ -55,7 +55,7 @@ class Sprite extends NodeWithSize {
Paint paint = new Paint(); Paint paint = new Paint();
paint.setARGB((255.0*_opacity).toInt(), 255, 255, 255); paint.setARGB((255.0*_opacity).toInt(), 255, 255, 255);
if (colorOverlay != null) { if (colorOverlay != null) {
paint.setColorFilter(new ColorFilter.Mode(colorOverlay, TransferMode.srcATopMode)); paint.setColorFilter(new ColorFilter.mode(colorOverlay, TransferMode.srcATopMode));
} }
if (transferMode != null) { if (transferMode != null) {
paint.setTransferMode(transferMode); paint.setTransferMode(transferMode);
......
...@@ -55,10 +55,10 @@ void main() { ...@@ -55,10 +55,10 @@ void main() {
(Paint layerPaint) { (Paint layerPaint) {
layerPaint.color = const Color.fromARGB(128, 255, 255, 0); layerPaint.color = const Color.fromARGB(128, 255, 255, 0);
layerPaint.setColorFilter( layerPaint.setColorFilter(
new ColorFilter.Mode(const Color.fromARGB(128, 0, 0, 255), new ColorFilter.mode(const Color.fromARGB(128, 0, 0, 255),
TransferMode.srcInMode)); TransferMode.srcInMode));
layerPaint.setMaskFilter( layerPaint.setMaskFilter(
new MaskFilter.Blur(BlurStyle.normal, 3.0, highQuality: true)); new MaskFilter.blur(BlurStyle.normal, 3.0, highQuality: true));
}) })
..addLayerOnTop( ..addLayerOnTop(
new DrawLooperLayerInfo() new DrawLooperLayerInfo()
......
...@@ -21,7 +21,7 @@ void beginFrame(double timeStamp) { ...@@ -21,7 +21,7 @@ void beginFrame(double timeStamp) {
(Paint layerPaint) { (Paint layerPaint) {
layerPaint.color = const Color.fromARGB(128, 55, 55, 55); layerPaint.color = const Color.fromARGB(128, 55, 55, 55);
layerPaint.setMaskFilter( layerPaint.setMaskFilter(
new MaskFilter.Blur(BlurStyle.normal, 5.0, highQuality: true)); new MaskFilter.blur(BlurStyle.normal, 5.0, highQuality: true));
}) })
// Main layer. // Main layer.
..addLayerOnTop(new DrawLooperLayerInfo(), (Paint) {}); ..addLayerOnTop(new DrawLooperLayerInfo(), (Paint) {});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment