Caches the location of generic uniforms
TRAC #12215
Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch

Author:    Shannon Woods

git-svn-id: https://angleproject.googlecode.com/svn/trunk@298 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/libGLESv2/Program.h b/src/libGLESv2/Program.h
index d23513b..7377587 100644
--- a/src/libGLESv2/Program.h
+++ b/src/libGLESv2/Program.h
@@ -93,6 +93,15 @@
     bool getUniformfv(GLint location, GLfloat *params);
     bool getUniformiv(GLint location, GLint *params);
 
+    GLint getDepthRangeDiffLocation() const;
+    GLint getDepthRangeNearLocation() const;
+    GLint getDepthRangeFarLocation() const;
+    GLint getDxDepthLocation() const;
+    GLint getDxWindowLocation() const;
+    GLint getDxHalfPixelSizeLocation() const;
+    GLint getDxFrontCCWLocation() const;
+    GLint getDxPointsOrLinesLocation() const;
+
     void dirtyAllUniforms();
     void applyUniforms();
 
@@ -191,6 +200,15 @@
     typedef std::vector<UniformLocation> UniformIndex;
     UniformIndex mUniformIndex;
 
+    GLint mDepthRangeDiffLocation;
+    GLint mDepthRangeNearLocation;
+    GLint mDepthRangeFarLocation;
+    GLint mDxDepthLocation;
+    GLint mDxWindowLocation;
+    GLint mDxHalfPixelSizeLocation;
+    GLint mDxFrontCCWLocation;
+    GLint mDxPointsOrLinesLocation;
+
     bool mLinked;
     bool mDeleteStatus;   // Flag to indicate that the program can be deleted when no longer in use
     char *mInfoLog;