Fix up constructor naming style for MaskFilter and ColorFilter.

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1179913002.
This commit is contained in:
Matt Perry
2015-06-11 13:15:20 -04:00
parent 6ed8fb863c
commit a523d7f3ea
3 changed files with 4 additions and 4 deletions

View File

@@ -55,7 +55,7 @@ class Sprite extends NodeWithSize {
Paint paint = new Paint();
paint.setARGB((255.0*_opacity).toInt(), 255, 255, 255);
if (colorOverlay != null) {
paint.setColorFilter(new ColorFilter.Mode(colorOverlay, TransferMode.srcATopMode));
paint.setColorFilter(new ColorFilter.mode(colorOverlay, TransferMode.srcATopMode));
}
if (transferMode != null) {
paint.setTransferMode(transferMode);

View File

@@ -55,10 +55,10 @@ void main() {
(Paint layerPaint) {
layerPaint.color = const Color.fromARGB(128, 255, 255, 0);
layerPaint.setColorFilter(
new ColorFilter.Mode(const Color.fromARGB(128, 0, 0, 255),
new ColorFilter.mode(const Color.fromARGB(128, 0, 0, 255),
TransferMode.srcInMode));
layerPaint.setMaskFilter(
new MaskFilter.Blur(BlurStyle.normal, 3.0, highQuality: true));
new MaskFilter.blur(BlurStyle.normal, 3.0, highQuality: true));
})
..addLayerOnTop(
new DrawLooperLayerInfo()

View File

@@ -21,7 +21,7 @@ void beginFrame(double timeStamp) {
(Paint layerPaint) {
layerPaint.color = const Color.fromARGB(128, 55, 55, 55);
layerPaint.setMaskFilter(
new MaskFilter.Blur(BlurStyle.normal, 5.0, highQuality: true));
new MaskFilter.blur(BlurStyle.normal, 5.0, highQuality: true));
})
// Main layer.
..addLayerOnTop(new DrawLooperLayerInfo(), (Paint) {});