summaryrefslogtreecommitdiffstats
path: root/libs/hwui/Glop.h
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2015-02-02 18:39:33 -0800
committerChris Craik <ccraik@google.com>2015-02-04 15:57:59 -0800
commit031888744e24b5c7243ac99ec98b78aff5db1c78 (patch)
treeba2037e7d008a1d7dfbcfb4cb905ea7fe68ffaef /libs/hwui/Glop.h
parent6c15ffa196fc9b7724c189d833c3435d8db12266 (diff)
downloadframeworks_base-031888744e24b5c7243ac99ec98b78aff5db1c78.zip
frameworks_base-031888744e24b5c7243ac99ec98b78aff5db1c78.tar.gz
frameworks_base-031888744e24b5c7243ac99ec98b78aff5db1c78.tar.bz2
GlopBuilder, and test app refactor
Change-Id: I2cd299ccf178007fd5f83bab6c3448f03aec7843
Diffstat (limited to 'libs/hwui/Glop.h')
-rw-r--r--libs/hwui/Glop.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/libs/hwui/Glop.h b/libs/hwui/Glop.h
index 730d9df..bbeb19e 100644
--- a/libs/hwui/Glop.h
+++ b/libs/hwui/Glop.h
@@ -23,10 +23,13 @@
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
+#include <SkXfermode.h>
namespace android {
namespace uirenderer {
+class Program;
+
/*
* Enumerates optional vertex attributes
*
@@ -53,18 +56,16 @@ struct Glop {
Rect bounds;
struct Mesh {
- VertexAttribFlags vertexFlags = static_cast<VertexAttribFlags>(0);
+ VertexAttribFlags vertexFlags;
GLuint primitiveMode; // GL_TRIANGLES and GL_TRIANGLE_STRIP supported
- GLuint vertexBufferObject = 0;
- GLuint indexBufferObject = 0;
+ GLuint vertexBufferObject;
+ GLuint indexBufferObject;
int vertexCount;
GLsizei stride;
} mesh;
struct Fill {
Program* program;
- GLuint shaderId;
- GLuint textureId;
struct Color {
float a, r, g, b;
@@ -89,10 +90,8 @@ struct Glop {
} transform;
struct Blend {
- static const SkXfermode::Mode kDisable =
- static_cast<SkXfermode::Mode>(SkXfermode::kLastMode + 1);
- SkXfermode::Mode mode;
- bool swapSrcDst;
+ GLenum src;
+ GLenum dst;
} blend;
/**