From a5ef27da958acb84014b9f6ca4622c02be02fe22 Mon Sep 17 00:00:00 2001 From: Chris Craik Date: Mon, 4 Mar 2013 10:23:54 -0800 Subject: [PATCH] Document that degenerate lines wont be drawn bug:7658830 Skia and the HW acceleration path don't render anything for degenerate lines. Change-Id: I5ea6fe8f16533e5045a7cd10475f4240f6c311b6 --- graphics/java/android/graphics/Canvas.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/graphics/java/android/graphics/Canvas.java b/graphics/java/android/graphics/Canvas.java index fc84715fe980..91688db4b309 100644 --- a/graphics/java/android/graphics/Canvas.java +++ b/graphics/java/android/graphics/Canvas.java @@ -867,8 +867,11 @@ public class Canvas { /** * Draw a line segment with the specified start and stop x,y coordinates, - * using the specified paint. NOTE: since a line is always "framed", the - * Style is ignored in the paint. + * using the specified paint. + * + *

Note that since a line is always "framed", the Style is ignored in the paint.

+ * + *

Degenerate lines (length is 0) will not be drawn.

* * @param startX The x-coordinate of the start point of the line * @param startY The y-coordinate of the start point of the line -- 2.11.0