From 6f085f60e929f4bb5ae7ccbc04cbc23c99ee8850 Mon Sep 17 00:00:00 2001 From: ztenghui Date: Fri, 19 May 2017 13:55:43 -0700 Subject: [PATCH] Add documentation about 0 scale matrix to Shader fix:36989035 Test: build Change-Id: Id1134d5d31ea6a17dc56f24d26eb5da9a78a2c2d --- graphics/java/android/graphics/Shader.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/graphics/java/android/graphics/Shader.java b/graphics/java/android/graphics/Shader.java index 8410ab2a1e028..aedb83ca273d9 100644 --- a/graphics/java/android/graphics/Shader.java +++ b/graphics/java/android/graphics/Shader.java @@ -80,7 +80,8 @@ public class Shader { /** * Set the shader's local matrix. Passing null will reset the shader's - * matrix to identity. + * matrix to identity. If the matrix has scale value as 0, the drawing + * result is undefined. * * @param localM The shader's new local matrix, or null to specify identity */