summaryrefslogtreecommitdiffstats
path: root/libs/hwui/Program.h
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2010-07-27 19:53:33 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-07-27 19:53:33 -0700
commit85d8daa889db113b51c5d98929245e80f7277388 (patch)
treec20b40f4ea72fc2010fb6edf9cc1e1c5d76f2714 /libs/hwui/Program.h
parent8b67752c82a26e21fe0977cb5e201acf2e22824d (diff)
parentac670c0433d19397d4e36ced2110475b6f54fe26 (diff)
downloadframeworks_base-85d8daa889db113b51c5d98929245e80f7277388.zip
frameworks_base-85d8daa889db113b51c5d98929245e80f7277388.tar.gz
frameworks_base-85d8daa889db113b51c5d98929245e80f7277388.tar.bz2
Merge "Generate shaders to cover all possible cases."
Diffstat (limited to 'libs/hwui/Program.h')
-rw-r--r--libs/hwui/Program.h28
1 files changed, 15 insertions, 13 deletions
diff --git a/libs/hwui/Program.h b/libs/hwui/Program.h
index 824aa05..2cdd905 100644
--- a/libs/hwui/Program.h
+++ b/libs/hwui/Program.h
@@ -53,6 +53,16 @@ public:
virtual void remove();
/**
+ * Returns the OpenGL name of the specified attribute.
+ */
+ int getAttrib(const char* name);
+
+ /**
+ * Returns the OpenGL name of the specified uniform.
+ */
+ int getUniform(const char* name);
+
+ /**
* Indicates whether this program is currently in use with
* the GL context.
*/
@@ -67,10 +77,6 @@ protected:
* @return The OpenGL name of the attribute.
*/
int addAttrib(const char* name);
- /**
- * Returns the OpenGL name of the specified attribute.
- */
- int getAttrib(const char* name);
/**
* Adds a uniform with the specified name.
@@ -78,10 +84,6 @@ protected:
* @return The OpenGL name of the uniform.
*/
int addUniform(const char* name);
- /**
- * Returns the OpenGL name of the specified uniform.
- */
- int getUniform(const char* name);
private:
/**
@@ -145,6 +147,11 @@ public:
int position;
/**
+ * Name of the texture coordinates attribute.
+ */
+ int texCoords;
+
+ /**
* Name of the color uniform.
*/
int color;
@@ -184,11 +191,6 @@ public:
* Name of the texture sampler uniform.
*/
int sampler;
-
- /**
- * Name of the texture coordinates attribute.
- */
- int texCoords;
};
class DrawTextProgram: public DrawTextureProgram {