Add UniformExternalSize function

Trac #18608

Will be used in upcoming patch
Signed-off-by: Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@869 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/libGLESv2/utilities.cpp b/src/libGLESv2/utilities.cpp
index 38bb6af..a75e116 100644
--- a/src/libGLESv2/utilities.cpp
+++ b/src/libGLESv2/utilities.cpp
@@ -140,6 +140,11 @@
     return UniformComponentSize(UniformComponentType(type)) * UniformInternalComponentCount(type);
 }
 
+size_t UniformExternalSize(GLenum type)
+{
+    return UniformComponentSize(UniformComponentType(type)) * UniformExternalComponentCount(type);
+}
+
 int VariableRowCount(GLenum type)
 {
     switch (type)