diff options
Diffstat (limited to 'libs/hwui/Patch.h')
-rw-r--r-- | libs/hwui/Patch.h | 10 |
1 files changed, 5 insertions, 5 deletions
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 @@ struct Patch { 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 @@ private: 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 |