Add support for drawLines(), with anti-aliasing
Change-Id: I16c0593c5671490909dec13a85df601e1428a1a6
diff --git a/libs/hwui/Patch.h b/libs/hwui/Patch.h
index f712455..1d08c64 100644
--- a/libs/hwui/Patch.h
+++ b/libs/hwui/Patch.h
@@ -19,8 +19,6 @@
#include <sys/types.h>
-#include <SkBitmap.h>
-
#include "Vertex.h"
namespace android {
@@ -59,8 +57,9 @@
Patch(const uint32_t xCount, const uint32_t yCount);
~Patch();
- void updateVertices(const SkBitmap* bitmap, float left, float top, float right, float bottom,
- const int32_t* xDivs, const int32_t* yDivs,
+ void updateVertices(const float bitmapWidth, const float bitmapHeight,
+ float left, float top, float right, float bottom,
+ const int32_t* xDivs, const int32_t* yDivs,
const uint32_t width, const uint32_t height);
TextureVertex* vertices;
@@ -70,7 +69,8 @@
static inline void generateRow(TextureVertex*& vertex, float y1, float y2,
float v1, float v2, const int32_t xDivs[], uint32_t xCount,
float stretchX, float width, float bitmapWidth);
- static inline void generateQuad(TextureVertex*& vertex, float x1, float y1, float x2, float y2,
+ static inline void generateQuad(TextureVertex*& vertex,
+ float x1, float y1, float x2, float y2,
float u1, float v1, float u2, float v2);
}; // struct Patch