diff options
| author | Romain Guy <romainguy@google.com> | 2011-12-09 12:55:37 -0800 |
|---|---|---|
| committer | Romain Guy <romainguy@google.com> | 2011-12-09 12:55:37 -0800 |
| commit | 05bbde70fd2a3af737656b9f8c5a25b56429632e (patch) | |
| tree | 9bfe33e07e50af451260807d67606d1b75e692f8 /libs/hwui/Program.h | |
| parent | 9477c6e6581ce97976250951f33e1297604ac777 (diff) | |
| download | frameworks_base-05bbde70fd2a3af737656b9f8c5a25b56429632e.zip frameworks_base-05bbde70fd2a3af737656b9f8c5a25b56429632e.tar.gz frameworks_base-05bbde70fd2a3af737656b9f8c5a25b56429632e.tar.bz2 | |
Free up resources by deleting shaders early on
Change-Id: I29a39775732c0a48d3e6823f7afa3e741cae8541
Diffstat (limited to 'libs/hwui/Program.h')
| -rw-r--r-- | libs/hwui/Program.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/libs/hwui/Program.h b/libs/hwui/Program.h index 764cb05..edd1209 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 |
