OSDN Git Service

Add documentation about 0 scale matrix to Shader
authorztenghui <ztenghui@google.com>
Fri, 19 May 2017 20:55:43 +0000 (13:55 -0700)
committerztenghui <ztenghui@google.com>
Mon, 22 May 2017 21:56:50 +0000 (14:56 -0700)
fix:36989035

Test: build
Change-Id: Id1134d5d31ea6a17dc56f24d26eb5da9a78a2c2d

graphics/java/android/graphics/Shader.java

index 8410ab2..aedb83c 100644 (file)
@@ -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
      */