Don't render degenerate triangles in 9patches.
Bug #3251983

Change-Id: Ib0b38a7b8111542372f4c4c106b6321c26fe4ad4
diff --git a/libs/hwui/Patch.h b/libs/hwui/Patch.h
index 2cb8ecb..16ad86d 100644
--- a/libs/hwui/Patch.h
+++ b/libs/hwui/Patch.h
@@ -51,19 +51,23 @@
 
     GLuint meshBuffer;
     uint32_t verticesCount;
-    Vector<Rect> quads;
     bool hasEmptyQuads;
+#if RENDER_LAYERS_AS_REGIONS
+    Vector<Rect> quads;
+#endif
 
 private:
     TextureVertex* mVertices;
     bool mUploaded;
 
-    uint32_t mXCount;
     int32_t* mXDivs;
-    uint32_t mYCount;
     int32_t* mYDivs;
     uint32_t mColorKey;
 
+    uint32_t mXCount;
+    uint32_t mYCount;
+    int8_t mEmptyQuads;
+
     void copy(const int32_t* yDivs);
 
     void generateRow(TextureVertex*& vertex, float y1, float y2,