From 9b69c5db0acd152dc46547f3fd4870499ad02a70 Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Mon, 15 May 2017 10:07:10 -0700 Subject: [PATCH] Solicit input about Canvas.drawPoints API break (flutter/engine#3693) --- engine/src/flutter/lib/ui/painting.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/engine/src/flutter/lib/ui/painting.dart b/engine/src/flutter/lib/ui/painting.dart index 9fc434faf3..800e2ef49d 100644 --- a/engine/src/flutter/lib/ui/painting.dart +++ b/engine/src/flutter/lib/ui/painting.dart @@ -1194,6 +1194,7 @@ class Vertices extends NativeFieldWrapperClass2 { /// Defines how a list of points is interpreted when drawing a set of points. /// +// ignore: deprecated_member_use /// Used by [Canvas.drawPoints]. enum PointMode { /// Draw each point separately. @@ -1602,6 +1603,7 @@ class Canvas extends NativeFieldWrapperClass2 { /// Draws a sequence of points according to the given [PointMode]. /// /// The `points` argument is interpreted as offsets from the origin. + @Deprecated('We are planning on changing the signature of this function. See .') void drawPoints(PointMode pointMode, List points, Paint paint) { _drawPoints(paint._objects, paint._data, pointMode.index, _encodePointList(points)); } @@ -1698,10 +1700,10 @@ abstract class Picture extends NativeFieldWrapperClass2 { Picture(); // (this constructor is here just so we can document it) /// Creates an image from this picture. - /// + /// /// The picture is rasterized using the number of pixels specified by the /// given width and height. - /// + /// /// Although the image is returned synchronously, the picture is actually /// rasterized the first time the image is drawn and then cached. Image toImage(int width, int height) native "Picture_toImage";