summaryrefslogtreecommitdiff
path: root/libs/hwui/Program.h
diff options
context:
space:
mode:
author Romain Guy <romainguy@google.com> 2011-12-12 11:44:32 -0800
committer Android (Google) Code Review <android-gerrit@google.com> 2011-12-12 11:44:32 -0800
commitee698a01bdc9ea7aa2b1cd729109b194a130f9f5 (patch)
tree068f0483d23cd70a8fb5615caeb1189c5bd3d956 /libs/hwui/Program.h
parent549d5f88bf96f93de5d10f094bda4a62ac5ebe3a (diff)
parent05bbde70fd2a3af737656b9f8c5a25b56429632e (diff)
Merge "Free up resources by deleting shaders early on"
Diffstat (limited to 'libs/hwui/Program.h')
-rw-r--r--libs/hwui/Program.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/libs/hwui/Program.h b/libs/hwui/Program.h
index 764cb0583b24..edd12093f474 100644
--- a/libs/hwui/Program.h
+++ b/libs/hwui/Program.h
@@ -122,18 +122,17 @@ private:
GLuint buildShader(const char* source, GLenum type);
// Name of the OpenGL program
- GLuint id;
-
- // Name of the shaders
- GLuint vertexShader;
- GLuint fragmentShader;
+ GLuint mProgramId;
// Keeps track of attributes and uniforms slots
- KeyedVector<const char*, int> attributes;
- KeyedVector<const char*, int> uniforms;
+ KeyedVector<const char*, int> mAttributes;
+ KeyedVector<const char*, int> mUniforms;
bool mUse;
bool mInitialized;
+
+ bool mHasColorUniform;
+ int mColorUniform;
}; // class Program
}; // namespace uirenderer