Add static_use to shader variable info query.

BUG=249018
ANGLEBUG=465
R=kbr@chromium.org

Review URL: https://codereview.appspot.com/13158043
diff --git a/src/compiler/ShaderLang.cpp b/src/compiler/ShaderLang.cpp
index b1364fd..6d954ca 100644
--- a/src/compiler/ShaderLang.cpp
+++ b/src/compiler/ShaderLang.cpp
@@ -257,10 +257,11 @@
                        int* size,
                        ShDataType* type,
                        ShPrecisionType* precision,
+                       int* staticUse,
                        char* name,
                        char* mappedName)
 {
-    if (!handle || !size || !type || !name)
+    if (!handle || !size || !type || !precision || !staticUse || !name)
         return;
     ASSERT((varType == SH_ACTIVE_ATTRIBUTES) ||
            (varType == SH_ACTIVE_UNIFORMS) ||
@@ -297,6 +298,7 @@
         *precision = SH_PRECISION_UNDEFINED;
         break;
     }
+    *staticUse = varInfo.staticUse ? 1 : 0;
 
     // This size must match that queried by
     // SH_ACTIVE_UNIFORM_MAX_LENGTH, SH_ACTIVE_ATTRIBUTE_MAX_LENGTH, SH_VARYING_MAX_LENGTH