Emit precisions in function arguments and return type for GLES2.

BUG=none
TEST=Translator with GLES2 output backend emit precisions for function arguments and return type.
Review URL: http://codereview.appspot.com/4643042

git-svn-id: https://angleproject.googlecode.com/svn/trunk@694 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/compiler/OutputGLSLBase.cpp b/src/compiler/OutputGLSLBase.cpp
index 5e3857c..a0feb07 100644
--- a/src/compiler/OutputGLSLBase.cpp
+++ b/src/compiler/OutputGLSLBase.cpp
@@ -136,12 +136,7 @@
         ASSERT(arg != NULL);
 
         const TType& type = arg->getType();
-        TQualifier qualifier = type.getQualifier();
-        // TODO(alokp): Validate qualifier for function arguments.
-        if ((qualifier != EvqTemporary) && (qualifier != EvqGlobal))
-            out << type.getQualifierString() << " ";
-
-        out << getTypeName(type);
+        writeVariableType(type);
 
         const TString& name = arg->getSymbol();
         if (!name.empty())
@@ -475,9 +470,8 @@
         case EOpFunction: {
             // Function definition.
             ASSERT(visit == PreVisit);
-            TString returnType = getTypeName(node->getType());
-            TString functionName = TFunction::unmangleName(node->getName());
-            out << returnType << " " << functionName;
+            writeVariableType(node->getType());
+            out << " " << TFunction::unmangleName(node->getName());
 
             incrementDepth();
             // Function definition node contains one or two children nodes